Struct dpdk_unix::android_linux::mounts::Mount [−][src]
pub struct Mount { pub source: CString, pub mount_point: PathBuf, pub file_system_type: FileSystemType, pub mount_options: HashMap<String, Option<String>>, // 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<String, Option<String>>
Mount options.
eg nodev mode=0177
Methods
impl Mount
[src]
impl Mount
pub fn unmount(
mount_point: &Path,
unmount_flags: UnmountFlags
) -> Result<(), Error>
[src]
pub fn unmount(
mount_point: &Path,
unmount_flags: UnmountFlags
) -> Result<(), Error>
Unmounts.
pub fn has_file_system_type(&self, file_system_type: &FileSystemType) -> bool
[src]
pub fn has_file_system_type(&self, file_system_type: &FileSystemType) -> bool
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<String, Option<String>>
) -> Self
[src]
pub fn new_where_source_is_file_system_type(
mount_point: PathBuf,
file_system_type: FileSystemType,
mount_options: HashMap<String, Option<String>>
) -> Self
New instance for file systems which do not have a source (eg hugetlbs
).
pub fn mount(&self, mount_flags: MountFlags) -> Result<(), Error>
[src]
pub fn mount(&self, mount_flags: MountFlags) -> Result<(), Error>
Mount.