[][src]Struct sunrise_loader::BOOT_FROM_FS

struct BOOT_FROM_FS {
    __private_field: (),
}

The filesystem to boot titles from.

Fields

__private_field: ()

Methods from Deref<Target = IFileSystemProxy>

pub fn clone_current_object(&self) -> Result<IFileSystemProxy, Error>[src]

Clones the current object, returning a new handle. The returned handle has its own IPC buffer - it may be used concurrently with the original.

pub fn create_file(
    &self,
    mode: u32,
    size: u64,
    path: &[u8; 768]
) -> Result<(), Error>
[src]

Create a file with a given size at the specified path.

pub fn delete_file(&self, path: &[u8; 768]) -> Result<(), Error>[src]

Delete a file at the specified path.

pub fn create_directory(&self, path: &[u8; 768]) -> Result<(), Error>[src]

Create a directory at the specified path.

pub fn delete_directory(&self, path: &[u8; 768]) -> Result<(), Error>[src]

Delete a directory at the specified path.

pub fn rename_file(
    &self,
    old_path: &[u8; 768],
    new_path: &[u8; 768]
) -> Result<(), Error>
[src]

Rename a file at old_path into new_path.

pub fn rename_directory(
    &self,
    old_path: &[u8; 768],
    new_path: &[u8; 768]
) -> Result<(), Error>
[src]

Rename a directory at old_path into new_path

pub fn get_entry_type(
    &self,
    path: &[u8; 768]
) -> Result<DirectoryEntryType, Error>
[src]

Get the informations about an entry on the filesystem.

pub fn open_file(
    &self,
    mode: u32,
    path: &[u8; 768]
) -> Result<IFileProxy, Error>
[src]

Open a file at the specified path with the given mode flags.

mode controls how the file is opened, based on which bits are set: When bit 0 is set, the file is Readable: you can use the Read operation. When bit 1 is set, the file is Writable: you can use the Write operation. When bit 2 is set, the file is Appendable: unless this bit is set, you will not be able to write beyond the end of a file (such writes will result in an error 0x307202)

pub fn open_file_as_ipipe(
    &self,
    mode: u32,
    path: &[u8; 768]
) -> Result<IPipeProxy, Error>
[src]

Open a file at the specified path with the given mode flags.

mode controls how the file is opened, based on which bits are set: When bit 0 is set, the file is Readable: you can use the Read operation. When bit 1 is set, the file is Writable: you can use the Write operation. When bit 2 is set, the file is Appendable: unless this bit is set, you will not be able to write beyond the end of a file (such writes will result in an error 0x307202)

pub fn open_directory(
    &self,
    filter_flags: u32,
    path: &[u8; 768]
) -> Result<IDirectoryProxy, Error>
[src]

Open a directory at the specified path with the given filter_flags flags.

pub fn get_free_space_size(&self, path: &[u8; 768]) -> Result<u64, Error>[src]

Get the total availaible space on the given filesystem.

pub fn get_total_space_size(&self, path: &[u8; 768]) -> Result<u64, Error>[src]

Get the total size of the filesystem.

pub fn get_file_timestamp_raw(
    &self,
    path: &[u8; 768]
) -> Result<FileTimeStampRaw, Error>
[src]

Return the attached timestamps on a resource at the given path.

pub fn get_filesystem_type(&self) -> Result<FileSystemType, Error>[src]

Get the type of this filesystem.

Trait Implementations

impl Deref for BOOT_FROM_FS[src]

type Target = IFileSystemProxy

The resulting type after dereferencing.

impl LazyStatic for BOOT_FROM_FS[src]

Auto Trait Implementations

impl RefUnwindSafe for BOOT_FROM_FS

impl Send for BOOT_FROM_FS

impl Sync for BOOT_FROM_FS

impl Unpin for BOOT_FROM_FS

impl UnwindSafe for BOOT_FROM_FS

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SizedIPCBuffer for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.