[][src]Struct sunrise_libuser::fs::IFileSystemProxy

pub struct IFileSystemProxy(ClientSession);

Represent a filesystem.

Implementations

impl IFileSystemProxy[src]

pub fn clone_current_object(&self) -> Result<Self, 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: &FileSystemPath
) -> Result<(), Error>
[src]

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

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

Delete a file at the specified path.

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

Create a directory at the specified path.

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

Delete a directory at the specified path.

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

Rename a file at old_path into new_path.

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

Rename a directory at old_path into new_path

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

Get the informations about an entry on the filesystem.

pub fn open_file(
    &self,
    mode: u32,
    path: &FileSystemPath
) -> 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: &FileSystemPath
) -> 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: &FileSystemPath
) -> 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: &FileSystemPath) -> Result<u64, Error>[src]

Get the total availaible space on the given filesystem.

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

Get the total size of the filesystem.

pub fn get_file_timestamp_raw(
    &self,
    path: &FileSystemPath
) -> 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 Debug for IFileSystemProxy[src]

impl From<ClientSession> for IFileSystemProxy[src]

impl From<IFileSystemProxy> for ClientSession[src]

Auto Trait Implementations

impl RefUnwindSafe for IFileSystemProxy

impl Send for IFileSystemProxy

impl Sync for IFileSystemProxy

impl Unpin for IFileSystemProxy

impl UnwindSafe for IFileSystemProxy

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.