[][src]Struct sunrise_fs::detail::PartitionManager

pub struct PartitionManager<'a> {
    inner: &'a mut dyn IStorage<Error = Error>,
}

Manage partition of a IStorage.

Fields

inner: &'a mut dyn IStorage<Error = Error>

The IStorage used.

Implementations

impl<'a> PartitionManager<'a>[src]

pub fn new(inner: &'a mut dyn IStorage<Error = Error>) -> Self[src]

Create a new partition manager.

pub fn is_valid(&mut self) -> bool[src]

Check if the partition table is valid.

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

Create a protective MBR

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

Initialize a IStorage partition table.

Auto Trait Implementations

impl<'a> !RefUnwindSafe for PartitionManager<'a>

impl<'a> Send for PartitionManager<'a>

impl<'a> Sync for PartitionManager<'a>

impl<'a> Unpin for PartitionManager<'a>

impl<'a> !UnwindSafe for PartitionManager<'a>

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.