[−][src]Enum gluster::volume::VolumeType
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
Arbiter
Distribute
Stripe
Replicate
StripedAndReplicate
Disperse
DistributedAndStripe
DistributedAndReplicate
DistributedAndStripedAndReplicate
DistributedAndDisperse
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]
fn eq(&self, other: &VolumeType) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=
.
impl Debug for VolumeType
[src]
impl<'de> Deserialize<'de> for VolumeType
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,