pub struct Mount { /* private fields */ }Expand description
One service storage attachment.
Implementations§
Source§impl Mount
impl Mount
Sourcepub fn new(
source: MountSource,
target: impl Into<String>,
read_only: bool,
) -> Result<Self, ModelError>
pub fn new( source: MountSource, target: impl Into<String>, read_only: bool, ) -> Result<Self, ModelError>
Creates a storage attachment with a non-empty target path.
§Errors
Returns ModelError::EmptyValue or ModelError::ContainsNul for the target.
Sourcepub const fn source(&self) -> &MountSource
pub const fn source(&self) -> &MountSource
Returns the source storage kind.
Sourcepub fn set_selinux_relabel(&mut self, relabel: SelinuxRelabel)
pub fn set_selinux_relabel(&mut self, relabel: SelinuxRelabel)
Sets the requested SELinux relabel mode without erasing the source syntax decision.
Sourcepub const fn selinux_relabel(&self) -> Option<SelinuxRelabel>
pub const fn selinux_relabel(&self) -> Option<SelinuxRelabel>
Returns the requested SELinux relabel mode.
Trait Implementations§
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 UnsafeUnpin 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