pub struct MountOptions {
pub plugin_id: String,
pub guest_source: String,
pub guest_fstype: String,
pub read_only: bool,
pub access_time: AccessTimePolicy,
pub no_dir_atime: bool,
pub max_bytes: Option<u64>,
pub max_inodes: Option<usize>,
}Fields§
§plugin_id: String§guest_source: String§guest_fstype: String§read_only: bool§access_time: AccessTimePolicy§no_dir_atime: bool§max_bytes: Option<u64>§max_inodes: Option<usize>Implementations§
Source§impl MountOptions
impl MountOptions
pub fn new(plugin_id: impl Into<String>) -> Self
pub fn guest_source(self, guest_source: impl Into<String>) -> Self
pub fn guest_fstype(self, guest_fstype: impl Into<String>) -> Self
pub fn read_only(self, read_only: bool) -> Self
pub fn access_time(self, access_time: AccessTimePolicy) -> Self
pub fn no_dir_atime(self, no_dir_atime: bool) -> Self
pub fn max_bytes(self, max_bytes: Option<u64>) -> Self
pub fn max_inodes(self, max_inodes: Option<usize>) -> Self
Trait Implementations§
Source§impl Clone for MountOptions
impl Clone for MountOptions
Source§fn clone(&self) -> MountOptions
fn clone(&self) -> MountOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MountOptions
impl Debug for MountOptions
impl Eq for MountOptions
Source§impl PartialEq for MountOptions
impl PartialEq for MountOptions
impl StructuralPartialEq for MountOptions
Auto Trait Implementations§
impl Freeze for MountOptions
impl RefUnwindSafe for MountOptions
impl Send for MountOptions
impl Sync for MountOptions
impl Unpin for MountOptions
impl UnsafeUnpin for MountOptions
impl UnwindSafe for MountOptions
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