pub struct MountParams {
pub overlay: Option<bool>,
pub read_write: Option<bool>,
}Expand description
Options for a Mount call. All fields are optional for forward
compatibility — new mount options can be added without breaking the
wire format.
Fields§
§overlay: Option<bool>Whether to set up an overlayfs upper layer. When true, the fd array must contain two fds: upperdir and workdir.
read_write: Option<bool>Whether to mount read-write (only meaningful with overlay).
Implementations§
Source§impl MountParams
impl MountParams
Sourcefn to_mount_options(
&self,
fds: Vec<OwnedFd>,
) -> Result<MountOptions, RepositoryError>
fn to_mount_options( &self, fds: Vec<OwnedFd>, ) -> Result<MountOptions, RepositoryError>
Build [MountOptions] from these params, consuming the expected fds.
Trait Implementations§
Source§impl Clone for MountParams
impl Clone for MountParams
Source§fn clone(&self) -> MountParams
fn clone(&self) -> MountParams
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 MountParams
impl Debug for MountParams
Source§impl Default for MountParams
impl Default for MountParams
Source§fn default() -> MountParams
fn default() -> MountParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MountParams
impl<'de> Deserialize<'de> for MountParams
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 Serialize for MountParams
impl Serialize for MountParams
Auto Trait Implementations§
impl Freeze for MountParams
impl RefUnwindSafe for MountParams
impl Send for MountParams
impl Sync for MountParams
impl Unpin for MountParams
impl UnsafeUnpin for MountParams
impl UnwindSafe for MountParams
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
§impl<S> CanonJsonSerialize for Swhere
S: Serialize,
impl<S> CanonJsonSerialize for Swhere
S: Serialize,
§fn to_canon_json_writer<W>(&self, writer: W) -> Result<(), Error>where
W: Write,
fn to_canon_json_writer<W>(&self, writer: W) -> Result<(), Error>where
W: Write,
Serialize the given data structure as JSON into the I/O stream.
§fn to_canon_json_vec(&self) -> Result<Vec<u8>, Error>
fn to_canon_json_vec(&self) -> Result<Vec<u8>, Error>
Serialize the given data structure as a JSON byte vector.
§fn to_canon_json_string(&self) -> Result<String, Error>
fn to_canon_json_string(&self) -> Result<String, Error>
Serialize the given data structure as a String.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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