Struct bollard::models::MountBindOptions
source · pub struct MountBindOptions {
pub propagation: Option<MountBindOptionsPropagationEnum>,
pub non_recursive: Option<bool>,
pub create_mountpoint: Option<bool>,
pub read_only_non_recursive: Option<bool>,
pub read_only_force_recursive: Option<bool>,
}
Expand description
Optional configuration for the bind
type.
Fields§
§propagation: Option<MountBindOptionsPropagationEnum>
A propagation mode with the value [r]private
, [r]shared
, or [r]slave
.
non_recursive: Option<bool>
Disable recursive bind mount.
create_mountpoint: Option<bool>
Create mount point on host if missing
read_only_non_recursive: Option<bool>
Make the mount non-recursively read-only, but still leave the mount recursive (unless NonRecursive is set to true
in conjunction). Addded in v1.44, before that version all read-only mounts were non-recursive by default. To match the previous behaviour this will default to true
for clients on versions prior to v1.44.
read_only_force_recursive: Option<bool>
Raise an error if the mount cannot be made recursively read-only.
Trait Implementations§
source§impl Clone for MountBindOptions
impl Clone for MountBindOptions
source§fn clone(&self) -> MountBindOptions
fn clone(&self) -> MountBindOptions
Returns a copy 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 MountBindOptions
impl Debug for MountBindOptions
source§impl Default for MountBindOptions
impl Default for MountBindOptions
source§fn default() -> MountBindOptions
fn default() -> MountBindOptions
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MountBindOptions
impl<'de> Deserialize<'de> for MountBindOptions
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MountBindOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MountBindOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for MountBindOptions
impl PartialEq for MountBindOptions
source§impl Serialize for MountBindOptions
impl Serialize for MountBindOptions
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for MountBindOptions
Auto Trait Implementations§
impl Freeze for MountBindOptions
impl RefUnwindSafe for MountBindOptions
impl Send for MountBindOptions
impl Sync for MountBindOptions
impl Unpin for MountBindOptions
impl UnwindSafe for MountBindOptions
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
)