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
)