[][src]Struct dpdk_unix::android_linux::mounts::Mount

pub struct Mount {
    pub source: CString,
    pub mount_point: PathBuf,
    pub file_system_type: FileSystemType,
    pub mount_options: HashMap<Box<[u8]>, Option<Box<[u8]>>>,
    // some fields omitted
}

Represents a mount.

Fields

source: CString

eg eg /dev/sda1, proc, etc; not really that useful.

mount_point: PathBuf

Mount point.

file_system_type: FileSystemType

File system type.

eg proc, sysfs, hugetlbs, ext4; listed in second column of /proc/filesystems/

mount_options: HashMap<Box<[u8]>, Option<Box<[u8]>>>

Mount options.

eg nodev mode=0177

Methods

impl Mount[src]

pub fn unmount(
    mount_point: &Path,
    unmount_flags: UnmountFlags
) -> Result<(), Error>
[src]

Unmounts.

pub fn has_file_system_type(&self, file_system_type: &FileSystemType) -> bool[src]

Does this mount have this file system type?

pub fn new_where_source_is_file_system_type(
    mount_point: PathBuf,
    file_system_type: FileSystemType,
    mount_options: HashMap<Box<[u8]>, Option<Box<[u8]>>>
) -> Self
[src]

New instance for file systems which do not have a source (eg hugetlbs).

pub fn mount(&self, mount_flags: MountFlags) -> Result<(), Error>[src]

Mount.

Trait Implementations

impl Debug for Mount[src]

Auto Trait Implementations

impl Send for Mount

impl Sync for Mount

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]