pub struct Mount { /* private fields */ }Expand description
OCI mount metadata. This type does not mount filesystems.
Implementations§
Source§impl Mount
impl Mount
Sourcepub fn new(
kind: MountKind,
source: impl AsRef<str>,
destination: impl AsRef<str>,
) -> Result<Self, RuntimeError>
pub fn new( kind: MountKind, source: impl AsRef<str>, destination: impl AsRef<str>, ) -> Result<Self, RuntimeError>
Creates mount metadata.
Sourcepub fn with_option(self, option: impl Into<String>) -> Self
pub fn with_option(self, option: impl Into<String>) -> Self
Adds a mount option.
Sourcepub fn destination(&self) -> &str
pub fn destination(&self) -> &str
Returns the mount destination.
Trait Implementations§
Source§impl Ord for Mount
impl Ord for Mount
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Mount
impl PartialOrd for Mount
impl Eq for Mount
impl StructuralPartialEq for Mount
Auto Trait Implementations§
impl Freeze for Mount
impl RefUnwindSafe for Mount
impl Send for Mount
impl Sync for Mount
impl Unpin for Mount
impl UnsafeUnpin for Mount
impl UnwindSafe for Mount
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