pub struct GeneratedMount { /* private fields */ }Expand description
One generated service mount with deliberate short/long syntax selection.
Implementations§
Source§impl GeneratedMount
impl GeneratedMount
Sourcepub fn volume(
source: impl Into<String>,
target: impl Into<String>,
read_only: bool,
) -> Result<Self, GenerationError>
pub fn volume( source: impl Into<String>, target: impl Into<String>, read_only: bool, ) -> Result<Self, GenerationError>
Creates a long-form named-volume mount.
§Errors
Rejects empty or NUL-bearing source and target values.
Sourcepub fn bind(
source: impl Into<String>,
target: impl Into<String>,
read_only: bool,
selinux: Option<GeneratedSelinux>,
) -> Result<Self, GenerationError>
pub fn bind( source: impl Into<String>, target: impl Into<String>, read_only: bool, selinux: Option<GeneratedSelinux>, ) -> Result<Self, GenerationError>
Creates a bind mount. SELinux relabel intent selects short syntax deliberately.
§Errors
Rejects empty/NUL-bearing values. When selinux is present, also rejects : in source or
target because Compose only honors the relabel option in the short form used here.
Trait Implementations§
Source§impl Clone for GeneratedMount
impl Clone for GeneratedMount
Source§fn clone(&self) -> GeneratedMount
fn clone(&self) -> GeneratedMount
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 GeneratedMount
impl Debug for GeneratedMount
impl Eq for GeneratedMount
Source§impl PartialEq for GeneratedMount
impl PartialEq for GeneratedMount
impl StructuralPartialEq for GeneratedMount
Auto Trait Implementations§
impl Freeze for GeneratedMount
impl RefUnwindSafe for GeneratedMount
impl Send for GeneratedMount
impl Sync for GeneratedMount
impl Unpin for GeneratedMount
impl UnsafeUnpin for GeneratedMount
impl UnwindSafe for GeneratedMount
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