pub struct Mount { /* private fields */ }Implementations§
Source§impl Mount
impl Mount
pub fn try_mount(device: &str, fstype: &str, flags: MsFlags) -> Result<Mount>
pub fn from_existing<P: AsRef<Path>>(path: P) -> 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 Freeze for Mount
impl RefUnwindSafe for Mount
impl Send for Mount
impl Sync for Mount
impl Unpin for Mount
impl UnwindSafe for Mount
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more