pub struct DockerVolumeMount { /* private fields */ }Expand description
A Docker volume or bind mount specification.
Implementations§
Source§impl DockerVolumeMount
impl DockerVolumeMount
Sourcepub fn new(
source: Option<String>,
target: impl AsRef<str>,
access: MountAccess,
) -> Result<DockerVolumeMount, DockerVolumeError>
pub fn new( source: Option<String>, target: impl AsRef<str>, access: MountAccess, ) -> Result<DockerVolumeMount, DockerVolumeError>
Creates a mount from validated parts.
Sourcepub const fn kind(&self) -> VolumeKind
pub const fn kind(&self) -> VolumeKind
Returns the broad mount kind.
Sourcepub const fn access(&self) -> MountAccess
pub const fn access(&self) -> MountAccess
Returns the mount access mode.
Trait Implementations§
Source§impl Clone for DockerVolumeMount
impl Clone for DockerVolumeMount
Source§fn clone(&self) -> DockerVolumeMount
fn clone(&self) -> DockerVolumeMount
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 DockerVolumeMount
impl Debug for DockerVolumeMount
Source§impl Display for DockerVolumeMount
impl Display for DockerVolumeMount
Source§impl FromStr for DockerVolumeMount
impl FromStr for DockerVolumeMount
Source§type Err = DockerVolumeError
type Err = DockerVolumeError
The associated error which can be returned from parsing.
Source§fn from_str(
value: &str,
) -> Result<DockerVolumeMount, <DockerVolumeMount as FromStr>::Err>
fn from_str( value: &str, ) -> Result<DockerVolumeMount, <DockerVolumeMount as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for DockerVolumeMount
impl Hash for DockerVolumeMount
Source§impl Ord for DockerVolumeMount
impl Ord for DockerVolumeMount
Source§fn cmp(&self, other: &DockerVolumeMount) -> Ordering
fn cmp(&self, other: &DockerVolumeMount) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DockerVolumeMount
impl PartialEq for DockerVolumeMount
Source§fn eq(&self, other: &DockerVolumeMount) -> bool
fn eq(&self, other: &DockerVolumeMount) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DockerVolumeMount
impl PartialOrd for DockerVolumeMount
Source§impl TryFrom<&str> for DockerVolumeMount
impl TryFrom<&str> for DockerVolumeMount
Source§type Error = DockerVolumeError
type Error = DockerVolumeError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &str,
) -> Result<DockerVolumeMount, <DockerVolumeMount as TryFrom<&str>>::Error>
fn try_from( value: &str, ) -> Result<DockerVolumeMount, <DockerVolumeMount as TryFrom<&str>>::Error>
Performs the conversion.
impl Eq for DockerVolumeMount
impl StructuralPartialEq for DockerVolumeMount
Auto Trait Implementations§
impl Freeze for DockerVolumeMount
impl RefUnwindSafe for DockerVolumeMount
impl Send for DockerVolumeMount
impl Sync for DockerVolumeMount
impl Unpin for DockerVolumeMount
impl UnsafeUnpin for DockerVolumeMount
impl UnwindSafe for DockerVolumeMount
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