[][src]Struct sunrise_libuser::fs::IFileSystemServiceProxy

pub struct IFileSystemServiceProxy(ClientSession);

Entry point of the file system interface.

Allows to interract with various filesytem via IPC.

Implementations

impl IFileSystemServiceProxy[src]

pub fn raw_new() -> Result<IFileSystemServiceProxy, Error>[src]

Creates a new IFileSystemServiceProxy by connecting to the fsp-srv service.

pub fn new() -> Result<&'static IFileSystemServiceProxy, Error>[src]

Acquires the shared handle to the fsp-srv service - connecting if it wasn't already.

impl IFileSystemServiceProxy[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 open_disk_partition(
    &self,
    disk_id: DiskId,
    partition_id: PartitionId
) -> Result<IFileSystemProxy, Error>
[src]

Open a disk partition filesystem. This may fail if no compatible driver is found.

pub fn open_disk_storage(&self, disk_id: DiskId) -> Result<IStorageProxy, Error>[src]

Open a disk as a block device. This may fail if no partition table is found.

pub fn get_disks_count(&self) -> Result<u32, Error>[src]

Get the count of disks availaible.

pub fn format_disk_partition(
    &self,
    disk_id: DiskId,
    partition_id: PartitionId,
    filesystem_type: FileSystemType
) -> Result<(), Error>
[src]

Format a disk partition to the given filesystem type.

pub fn initialize_disk(&self, disk_id: DiskId) -> Result<(), Error>[src]

Initialize a disk partition table

Trait Implementations

impl Debug for IFileSystemServiceProxy[src]

impl From<ClientSession> for IFileSystemServiceProxy[src]

impl From<IFileSystemServiceProxy> for ClientSession[src]

Auto Trait Implementations

impl RefUnwindSafe for IFileSystemServiceProxy

impl Send for IFileSystemServiceProxy

impl Sync for IFileSystemServiceProxy

impl Unpin for IFileSystemServiceProxy

impl UnwindSafe for IFileSystemServiceProxy

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.