[−][src]Struct sunrise_libuser::fs::IFileSystemProxy
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]
&self,
mode: u32,
size: u64,
path: &FileSystemPath
) -> Result<(), Error>
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]
&self,
old_path: &FileSystemPath,
new_path: &FileSystemPath
) -> Result<(), Error>
Rename a file at old_path
into new_path
.
pub fn rename_directory(
&self,
old_path: &FileSystemPath,
new_path: &FileSystemPath
) -> Result<(), Error>
[src]
&self,
old_path: &FileSystemPath,
new_path: &FileSystemPath
) -> Result<(), Error>
Rename a directory at old_path
into new_path
pub fn get_entry_type(
&self,
path: &FileSystemPath
) -> Result<DirectoryEntryType, Error>
[src]
&self,
path: &FileSystemPath
) -> Result<DirectoryEntryType, Error>
Get the informations about an entry on the filesystem.
pub fn open_file(
&self,
mode: u32,
path: &FileSystemPath
) -> Result<IFileProxy, Error>
[src]
&self,
mode: u32,
path: &FileSystemPath
) -> 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)
pub fn open_file_as_ipipe(
&self,
mode: u32,
path: &FileSystemPath
) -> Result<IPipeProxy, Error>
[src]
&self,
mode: u32,
path: &FileSystemPath
) -> 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)
pub fn open_directory(
&self,
filter_flags: u32,
path: &FileSystemPath
) -> Result<IDirectoryProxy, Error>
[src]
&self,
filter_flags: u32,
path: &FileSystemPath
) -> Result<IDirectoryProxy, Error>
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]
&self,
path: &FileSystemPath
) -> Result<FileTimeStampRaw, Error>
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]
fn from(sess: ClientSession) -> IFileSystemProxy
[src]
impl From<IFileSystemProxy> for ClientSession
[src]
fn from(sess: IFileSystemProxy) -> 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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SizedIPCBuffer for T
[src]
fn size(&Self) -> usize
[src]
fn is_cool(usize, usize) -> bool
[src]
unsafe fn from_raw_parts<'a>(usize, usize) -> &'a T
[src]
unsafe fn from_raw_parts_mut<'a>(usize, usize) -> &'a mut T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,