[−][src]Struct dpdk_unix::android_linux::mounts::Mount
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]
mount_point: &Path,
unmount_flags: UnmountFlags
) -> Result<(), Error>
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]
mount_point: PathBuf,
file_system_type: FileSystemType,
mount_options: HashMap<Box<[u8]>, Option<Box<[u8]>>>
) -> Self
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
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,