Struct libcoreinst::blockdev::Mount
source · [−]pub struct Mount { /* private fields */ }Implementations
sourceimpl Mount
impl Mount
pub fn try_mount(device: &str, fstype: &str, flags: MsFlags) -> Result<Mount>
pub fn from_existing(path: &str) -> Result<Mount>
pub fn device(&self) -> &str
pub fn mountpoint(&self) -> &Path
pub fn get_partition_offsets(&self) -> Result<(u64, u64)>
pub fn get_filesystem_uuid(&self) -> Result<String>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Mount
impl Send for Mount
impl Sync for Mount
impl Unpin for Mount
impl UnwindSafe for Mount
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more