pub struct Mount { /* private fields */ }
Expand description
Mount specifies a mount for a container.
Implementations§
Source§impl Mount
impl Mount
Sourcepub fn destination(&self) -> &PathBuf
pub fn destination(&self) -> &PathBuf
Destination is the absolute path where the mount will be placed in the container.
Source§impl Mount
impl Mount
Sourcepub fn destination_mut(&mut self) -> &mut PathBuf
pub fn destination_mut(&mut self) -> &mut PathBuf
Destination is the absolute path where the mount will be placed in the container.
Sourcepub fn source_mut(&mut self) -> &mut Option<PathBuf>
pub fn source_mut(&mut self) -> &mut Option<PathBuf>
Source specifies the source path of the mount.
Sourcepub fn options_mut(&mut self) -> &mut Option<Vec<String>>
pub fn options_mut(&mut self) -> &mut Option<Vec<String>>
Options are fstab style mount options.
Source§impl Mount
impl Mount
Sourcepub fn set_destination(&mut self, val: PathBuf) -> &mut Self
pub fn set_destination(&mut self, val: PathBuf) -> &mut Self
Destination is the absolute path where the mount will be placed in the container.
Sourcepub fn set_source(&mut self, val: Option<PathBuf>) -> &mut Self
pub fn set_source(&mut self, val: Option<PathBuf>) -> &mut Self
Source specifies the source path of the mount.
Sourcepub fn set_options(&mut self, val: Option<Vec<String>>) -> &mut Self
pub fn set_options(&mut self, val: Option<Vec<String>>) -> &mut Self
Options are fstab style mount options.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Mount
impl<'de> Deserialize<'de> for Mount
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
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)