pub struct BindOptions { /* private fields */ }Expand description
Bind-specific options in a long-syntax mount.
Implementations§
Source§impl BindOptions
impl BindOptions
Sourcepub const fn span(&self) -> SourceSpan
pub const fn span(&self) -> SourceSpan
Returns the complete bind mapping span.
Sourcepub const fn propagation(&self) -> Option<&Located<String>>
pub const fn propagation(&self) -> Option<&Located<String>>
Returns the requested bind-propagation mode.
Sourcepub const fn create_host_path(&self) -> Option<&Located<BooleanValue>>
pub const fn create_host_path(&self) -> Option<&Located<BooleanValue>>
Returns the explicitly authored host-path creation setting.
None means the field was omitted; it is deliberately not replaced by an
implementation default during typed parsing.
Sourcepub const fn selinux(&self) -> Option<&Located<SelinuxRelabel>>
pub const fn selinux(&self) -> Option<&Located<SelinuxRelabel>>
Returns the requested SELinux relabel mode.
Sourcepub fn extension_fields(&self) -> &[FieldReference]
pub fn extension_fields(&self) -> &[FieldReference]
Returns x- extension fields retained from the bind mapping.
Sourcepub fn unknown_fields(&self) -> &[FieldReference]
pub fn unknown_fields(&self) -> &[FieldReference]
Returns unrecognized bind fields retained from the source.
Trait Implementations§
Source§impl Clone for BindOptions
impl Clone for BindOptions
Source§fn clone(&self) -> BindOptions
fn clone(&self) -> BindOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BindOptions
impl Debug for BindOptions
impl Eq for BindOptions
Source§impl PartialEq for BindOptions
impl PartialEq for BindOptions
impl StructuralPartialEq for BindOptions
Auto Trait Implementations§
impl Freeze for BindOptions
impl RefUnwindSafe for BindOptions
impl Send for BindOptions
impl Sync for BindOptions
impl Unpin for BindOptions
impl UnsafeUnpin for BindOptions
impl UnwindSafe for BindOptions
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