pub struct MountBuilder { /* private fields */ }
Expand description
Builder for Mount
.
Implementations§
Source§impl MountBuilder
impl MountBuilder
pub fn mount_type<VALUE: Into<Option<MountType>>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn source<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn source<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
source specifies the name of the mount. Depending on mount type, this may be a volume name or a host path, or even ignored. Source is not supported for tmpfs (must be an empty value).
pub fn target<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn read_only<VALUE: Into<Option<bool>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn consistency<VALUE: Into<Option<MountConsistency>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn bind_options<VALUE: Into<Option<MountBindOptions>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn volume_options<VALUE: Into<Option<MountVolumeOptions>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn tmpfs_options<VALUE: Into<Option<MountTmpfsOptions>>>( &mut self, value: VALUE, ) -> &mut Self
Trait Implementations§
Source§impl Clone for MountBuilder
impl Clone for MountBuilder
Source§fn clone(&self) -> MountBuilder
fn clone(&self) -> MountBuilder
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 Default for MountBuilder
impl Default for MountBuilder
Source§fn default() -> MountBuilder
fn default() -> MountBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MountBuilder
impl RefUnwindSafe for MountBuilder
impl Send for MountBuilder
impl Sync for MountBuilder
impl Unpin for MountBuilder
impl UnwindSafe for MountBuilder
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