[][src]Trait sys_mount::Unmount

pub trait Unmount {
    fn unmount(&self, flags: UnmountFlags) -> Result<()>;

    fn into_unmount_drop(self, flags: UnmountFlags) -> UnmountDrop<Self>
    where
        Self: Sized
, { ... } }

Unmount trait which enables any type that implements it to be upgraded into an UnmountDrop.

Required methods

fn unmount(&self, flags: UnmountFlags) -> Result<()>

Unmount this mount with the given flags.

This will also detach the loopback device that the mount is assigned to, if it was associated with a loopback device.

Loading content...

Provided methods

fn into_unmount_drop(self, flags: UnmountFlags) -> UnmountDrop<Self> where
    Self: Sized

Upgrades Self into an UnmountDrop, which will unmount the mount when it is dropped.

Loading content...

Implementors

impl Unmount for Mount[src]

fn into_unmount_drop(self, flags: UnmountFlags) -> UnmountDrop<Self> where
    Self: Sized
[src]

Loading content...