pub enum Tmpfs {
Path(String),
Sized(TmpfsMount),
}Expand description
A memory-backed mount: a path, or a path with a size and a mode
({ path: /run, size: 64m, mode: "1777" }).
Variants§
Path(String)
A mount at this absolute path, of the runtime’s default size and mode.
Sized(TmpfsMount)
A mount with its options.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tmpfs
impl<'de> Deserialize<'de> for Tmpfs
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Tmpfs
Source§impl JsonSchema for Tmpfs
impl JsonSchema for Tmpfs
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Tmpfs
Auto Trait Implementations§
impl Freeze for Tmpfs
impl RefUnwindSafe for Tmpfs
impl Send for Tmpfs
impl Sync for Tmpfs
impl Unpin for Tmpfs
impl UnsafeUnpin for Tmpfs
impl UnwindSafe for Tmpfs
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.