[][src]Enum buildkit_proto::pb::MountType

#[repr(i32)]
pub enum MountType {
    Bind,
    Secret,
    Ssh,
    Cache,
    Tmpfs,
}

MountType defines a type of a mount from a supported set

Variants

Bind
Secret
Ssh
Cache
Tmpfs

Methods

impl MountType[src]

pub fn is_valid(value: i32) -> bool[src]

Returns true if value is a variant of MountType.

pub fn from_i32(value: i32) -> Option<MountType>[src]

Converts an i32 to a MountType, or None if value is not a valid variant.

Trait Implementations

impl Eq for MountType[src]

impl Default for MountType[src]

impl Clone for MountType[src]

impl PartialOrd<MountType> for MountType[src]

impl PartialEq<MountType> for MountType[src]

impl Ord for MountType[src]

impl From<MountType> for i32[src]

impl Copy for MountType[src]

impl Hash for MountType[src]

impl Debug for MountType[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]