pub struct MountTmpfsOptions {
pub size_bytes: Option<i64>,
pub mode: Option<u32>,
}
Expand description
MountTmpfsOptions defines options specific to mounts of type “tmpfs”.
Fields§
§size_bytes: Option<i64>
Size sets the size of the tmpfs, in bytes.
This will be converted to an operating system specific value depending on the host. For example, on linux, it will be converted to use a ‘k’, ‘m’ or ‘g’ syntax. BSD, though not widely supported with docker, uses a straight byte value.
Percentages are not supported.
mode: Option<u32>
Mode of the tmpfs upon creation.
Trait Implementations§
Source§impl Clone for MountTmpfsOptions
impl Clone for MountTmpfsOptions
Source§fn clone(&self) -> MountTmpfsOptions
fn clone(&self) -> MountTmpfsOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 MountTmpfsOptions
impl Debug for MountTmpfsOptions
Source§impl Default for MountTmpfsOptions
impl Default for MountTmpfsOptions
Source§fn default() -> MountTmpfsOptions
fn default() -> MountTmpfsOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MountTmpfsOptions
impl<'de> Deserialize<'de> for MountTmpfsOptions
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
Auto Trait Implementations§
impl Freeze for MountTmpfsOptions
impl RefUnwindSafe for MountTmpfsOptions
impl Send for MountTmpfsOptions
impl Sync for MountTmpfsOptions
impl Unpin for MountTmpfsOptions
impl UnwindSafe for MountTmpfsOptions
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