[][src]Trait sunrise_libuser::fs::IFileSystemAsync

pub trait IFileSystemAsync {
    fn create_file<'a>(
        &'a mut self,
        work_queue: WorkQueue<'static>,
        mode: u32,
        size: u64,
        path: &'a FileSystemPath
    ) -> FutureObj<'a, Result<(), Error>>;
fn delete_file<'a>(
        &'a mut self,
        work_queue: WorkQueue<'static>,
        path: &'a FileSystemPath
    ) -> FutureObj<'a, Result<(), Error>>;
fn create_directory<'a>(
        &'a mut self,
        work_queue: WorkQueue<'static>,
        path: &'a FileSystemPath
    ) -> FutureObj<'a, Result<(), Error>>;
fn delete_directory<'a>(
        &'a mut self,
        work_queue: WorkQueue<'static>,
        path: &'a FileSystemPath
    ) -> FutureObj<'a, Result<(), Error>>;
fn rename_file<'a>(
        &'a mut self,
        work_queue: WorkQueue<'static>,
        old_path: &'a FileSystemPath,
        new_path: &'a FileSystemPath
    ) -> FutureObj<'a, Result<(), Error>>;
fn rename_directory<'a>(
        &'a mut self,
        work_queue: WorkQueue<'static>,
        old_path: &'a FileSystemPath,
        new_path: &'a FileSystemPath
    ) -> FutureObj<'a, Result<(), Error>>;
fn get_entry_type<'a>(
        &'a mut self,
        work_queue: WorkQueue<'static>,
        path: &'a FileSystemPath
    ) -> FutureObj<'a, Result<DirectoryEntryType, Error>>;
fn open_file<'a>(
        &'a mut self,
        work_queue: WorkQueue<'static>,
        mode: u32,
        path: &'a FileSystemPath
    ) -> FutureObj<'a, Result<IFileProxy, Error>>;
fn open_file_as_ipipe<'a>(
        &'a mut self,
        work_queue: WorkQueue<'static>,
        mode: u32,
        path: &'a FileSystemPath
    ) -> FutureObj<'a, Result<IPipeProxy, Error>>;
fn open_directory<'a>(
        &'a mut self,
        work_queue: WorkQueue<'static>,
        filter_flags: u32,
        path: &'a FileSystemPath
    ) -> FutureObj<'a, Result<IDirectoryProxy, Error>>;
fn get_free_space_size<'a>(
        &'a mut self,
        work_queue: WorkQueue<'static>,
        path: &'a FileSystemPath
    ) -> FutureObj<'a, Result<u64, Error>>;
fn get_total_space_size<'a>(
        &'a mut self,
        work_queue: WorkQueue<'static>,
        path: &'a FileSystemPath
    ) -> FutureObj<'a, Result<u64, Error>>;
fn get_file_timestamp_raw<'a>(
        &'a mut self,
        work_queue: WorkQueue<'static>,
        path: &'a FileSystemPath
    ) -> FutureObj<'a, Result<FileTimeStampRaw, Error>>;
fn get_filesystem_type<'a>(
        &'a mut self,
        work_queue: WorkQueue<'static>
    ) -> FutureObj<'a, Result<FileSystemType, Error>>; fn dispatch<'a>(
        &'a mut self,
        work_queue: WorkQueue<'static>,
        cmdid: u32,
        buf: &'a mut [u8]
    ) -> FutureObj<Result<(), Error>> { ... } }

Represent a filesystem.

Required methods

fn create_file<'a>(
    &'a mut self,
    work_queue: WorkQueue<'static>,
    mode: u32,
    size: u64,
    path: &'a FileSystemPath
) -> FutureObj<'a, Result<(), Error>>

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

fn delete_file<'a>(
    &'a mut self,
    work_queue: WorkQueue<'static>,
    path: &'a FileSystemPath
) -> FutureObj<'a, Result<(), Error>>

Delete a file at the specified path.

fn create_directory<'a>(
    &'a mut self,
    work_queue: WorkQueue<'static>,
    path: &'a FileSystemPath
) -> FutureObj<'a, Result<(), Error>>

Create a directory at the specified path.

fn delete_directory<'a>(
    &'a mut self,
    work_queue: WorkQueue<'static>,
    path: &'a FileSystemPath
) -> FutureObj<'a, Result<(), Error>>

Delete a directory at the specified path.

fn rename_file<'a>(
    &'a mut self,
    work_queue: WorkQueue<'static>,
    old_path: &'a FileSystemPath,
    new_path: &'a FileSystemPath
) -> FutureObj<'a, Result<(), Error>>

Rename a file at old_path into new_path.

fn rename_directory<'a>(
    &'a mut self,
    work_queue: WorkQueue<'static>,
    old_path: &'a FileSystemPath,
    new_path: &'a FileSystemPath
) -> FutureObj<'a, Result<(), Error>>

Rename a directory at old_path into new_path

fn get_entry_type<'a>(
    &'a mut self,
    work_queue: WorkQueue<'static>,
    path: &'a FileSystemPath
) -> FutureObj<'a, Result<DirectoryEntryType, Error>>

Get the informations about an entry on the filesystem.

fn open_file<'a>(
    &'a mut self,
    work_queue: WorkQueue<'static>,
    mode: u32,
    path: &'a FileSystemPath
) -> FutureObj<'a, Result<IFileProxy, Error>>

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)

fn open_file_as_ipipe<'a>(
    &'a mut self,
    work_queue: WorkQueue<'static>,
    mode: u32,
    path: &'a FileSystemPath
) -> FutureObj<'a, Result<IPipeProxy, Error>>

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)

fn open_directory<'a>(
    &'a mut self,
    work_queue: WorkQueue<'static>,
    filter_flags: u32,
    path: &'a FileSystemPath
) -> FutureObj<'a, Result<IDirectoryProxy, Error>>

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

fn get_free_space_size<'a>(
    &'a mut self,
    work_queue: WorkQueue<'static>,
    path: &'a FileSystemPath
) -> FutureObj<'a, Result<u64, Error>>

Get the total availaible space on the given filesystem.

fn get_total_space_size<'a>(
    &'a mut self,
    work_queue: WorkQueue<'static>,
    path: &'a FileSystemPath
) -> FutureObj<'a, Result<u64, Error>>

Get the total size of the filesystem.

fn get_file_timestamp_raw<'a>(
    &'a mut self,
    work_queue: WorkQueue<'static>,
    path: &'a FileSystemPath
) -> FutureObj<'a, Result<FileTimeStampRaw, Error>>

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

fn get_filesystem_type<'a>(
    &'a mut self,
    work_queue: WorkQueue<'static>
) -> FutureObj<'a, Result<FileSystemType, Error>>

Get the type of this filesystem.

Loading content...

Provided methods

fn dispatch<'a>(
    &'a mut self,
    work_queue: WorkQueue<'static>,
    cmdid: u32,
    buf: &'a mut [u8]
) -> FutureObj<Result<(), Error>>

Handle an incoming IPC request.

Loading content...

Implementors

Loading content...