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>) -> MountOptions
pub fn guest_source(self, guest_source: impl Into<String>) -> MountOptions
pub fn guest_fstype(self, guest_fstype: impl Into<String>) -> MountOptions
pub fn read_only(self, read_only: bool) -> MountOptions
pub fn access_time(self, access_time: AccessTimePolicy) -> MountOptions
pub fn no_dir_atime(self, no_dir_atime: bool) -> MountOptions
pub fn max_bytes(self, max_bytes: Option<u64>) -> MountOptions
pub fn max_inodes(self, max_inodes: Option<usize>) -> MountOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more