[][src]Struct sunrise_fs::detail::FileSystemProxy

pub struct FileSystemProxy {}

Entry point of the file system interface.

Allows to interract with various filesytem.

Implementations

impl FileSystemProxy[src]

pub fn open_disk_partition(
    &mut self,
    disk_id: DiskId,
    partition_id: PartitionId
) -> LibUserResult<Arc<Mutex<Box<dyn FileSystemOperations>>>>
[src]

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

pub fn open_disk_storage(
    &mut self,
    disk_id: DiskId
) -> LibUserResult<Arc<Mutex<Box<dyn IStorage<Error = Error>>>>>
[src]

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

pub fn get_disks_count(&mut self) -> LibUserResult<u32>[src]

Get the count of disks availaible.

pub fn format_disk_partition(
    &mut self,
    disk_id: DiskId,
    partition_id: PartitionId,
    filesytem_type: FileSystemType
) -> LibUserResult<()>
[src]

Format a disk partition to the given filesystem type.

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

Initialize a disk partition table

Trait Implementations

impl Clone for FileSystemProxy[src]

impl Debug for FileSystemProxy[src]

impl Default for FileSystemProxy[src]

Auto Trait Implementations

impl RefUnwindSafe for FileSystemProxy

impl Send for FileSystemProxy

impl Sync for FileSystemProxy

impl Unpin for FileSystemProxy

impl UnwindSafe for FileSystemProxy

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.