[][src]Enum gluster::volume::VolumeType

pub enum VolumeType {
    Arbiter,
    Distribute,
    Stripe,
    Replicate,
    StripedAndReplicate,
    Disperse,
    DistributedAndStripe,
    DistributedAndReplicate,
    DistributedAndStripedAndReplicate,
    DistributedAndDisperse,
}

These are all the different Volume types that are possible in Gluster Note: Tier is not represented here because I'm waiting for it to become more stable For more information about these types see: [Gluster Volume] (https://gluster.readthedocs. org/en/latest/Administrator%20Guide/Setting%20Up%20Volumes/)

Variants

ArbiterDistributeStripeReplicateStripedAndReplicateDisperseDistributedAndStripeDistributedAndReplicateDistributedAndStripedAndReplicateDistributedAndDisperse

Methods

impl VolumeType[src]

pub fn new(name: &str) -> VolumeType[src]

Constructs a new VolumeType from a &str

pub fn from_str(vol_type: &str) -> VolumeType[src]

Returns a enum variant of the given String.

pub fn to_string(&self) -> String[src]

Returns a String representation of the selected enum variant.

Trait Implementations

impl Eq for VolumeType[src]

impl PartialEq<VolumeType> for VolumeType[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Debug for VolumeType[src]

impl<'de> Deserialize<'de> for VolumeType[src]

Auto Trait Implementations

impl Send for VolumeType

impl Sync for VolumeType

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]