[][src]Enum buildkit_proto::pb::CacheSharingOpt

#[repr(i32)]
pub enum CacheSharingOpt {
    Shared,
    Private,
    Locked,
}

CacheSharingOpt defines different sharing modes for cache mount

Variants

Shared

SHARED cache mount can be used concurrently by multiple writers

Private

PRIVATE creates a new mount if there are multiple writers

Locked

LOCKED pauses second writer until first one releases the mount

Methods

impl CacheSharingOpt[src]

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

Returns true if value is a variant of CacheSharingOpt.

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

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

Trait Implementations

impl Eq for CacheSharingOpt[src]

impl Default for CacheSharingOpt[src]

impl Clone for CacheSharingOpt[src]

impl PartialOrd<CacheSharingOpt> for CacheSharingOpt[src]

impl PartialEq<CacheSharingOpt> for CacheSharingOpt[src]

impl Ord for CacheSharingOpt[src]

impl From<CacheSharingOpt> for i32[src]

impl Copy for CacheSharingOpt[src]

impl Hash for CacheSharingOpt[src]

impl Debug for CacheSharingOpt[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]