#[non_exhaustive]pub enum MountSource {
Volume(Identifier),
HostPath(String),
Anonymous,
}Expand description
Storage backing attached to a service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Volume(Identifier)
Application-level named volume.
HostPath(String)
Authored host path whose target-specific resolution is deferred.
Anonymous
Anonymous target-managed storage.
Trait Implementations§
Source§impl Clone for MountSource
impl Clone for MountSource
Source§fn clone(&self) -> MountSource
fn clone(&self) -> MountSource
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 MountSource
impl Debug for MountSource
impl Eq for MountSource
Source§impl PartialEq for MountSource
impl PartialEq for MountSource
impl StructuralPartialEq for MountSource
Auto Trait Implementations§
impl Freeze for MountSource
impl RefUnwindSafe for MountSource
impl Send for MountSource
impl Sync for MountSource
impl Unpin for MountSource
impl UnsafeUnpin for MountSource
impl UnwindSafe for MountSource
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