pub struct MountOptions {
pub size: Option<MemSize>,
pub mode: Option<FsMode>,
pub flags: Option<MountFlags>,
}Fields§
§size: Option<MemSize>Default size of the in-memory filesystem
mode: Option<FsMode>Default file mode for the mounted filesystem
flags: Option<MountFlags>Default mount flags for the in-memory filesystem
Trait Implementations§
Source§impl ApplyDefaults for MountOptions
impl ApplyDefaults for MountOptions
fn apply_defaults(self) -> Self
Source§impl Args for MountOptions
impl Args for MountOptions
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for MountOptions
impl Clone for MountOptions
Source§impl ConfigSection for MountOptions
impl ConfigSection for MountOptions
fn section_name() -> Option<&'static str>
Source§impl Debug for MountOptions
impl Debug for MountOptions
Source§impl Default for MountOptions
impl Default for MountOptions
Source§impl<'de> Deserialize<'de> for MountOptions
impl<'de> Deserialize<'de> for MountOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromArgMatches for MountOptions
impl FromArgMatches for MountOptions
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Overlay for MountOptions
impl Overlay for MountOptions
Source§impl Serialize for MountOptions
impl Serialize for MountOptions
Source§impl TryFrom<MountOptions> for MountConfig
impl TryFrom<MountOptions> for MountConfig
Source§type Error = LocketError
type Error = LocketError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Forget for MountOptions
impl Freeze for MountOptions
impl Move 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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 moreSource§impl<T, C> Layered<C> for Twhere
T: Overlay + DeserializeOwned + Default + ApplyDefaults + ConfigSection + TryInto<C>,
<T as TryInto<C>>::Error: Into<LocketError>,
impl<T, C> Layered<C> for Twhere
T: Overlay + DeserializeOwned + Default + ApplyDefaults + ConfigSection + TryInto<C>,
<T as TryInto<C>>::Error: Into<LocketError>,
Source§fn resolve(self, configs: &[AbsolutePath]) -> Result<C, LocketError>
fn resolve(self, configs: &[AbsolutePath]) -> Result<C, LocketError>
Resolves the layered configuration into the target domain type
C.