pub enum VolumeStatus {
Pending,
Active,
Failed(String),
}Variants§
Pending
The volume needs to be initialized by the controller.
Active
The volume was successfully initialized and is ready to use / already in use.
Failed(String)
An error occurred during or after initialization. Possible reasons are for example:
- insufficient disk space,
- the provided
urlcould not be reached, - the size of the initial data (via
url) exceeded thesize_mib.
Implementations§
Source§impl VolumeStatus
impl VolumeStatus
fn transition_is_valid(old: &Self, new: &Self) -> bool
Trait Implementations§
Source§impl Clone for VolumeStatus
impl Clone for VolumeStatus
Source§fn clone(&self) -> VolumeStatus
fn clone(&self) -> VolumeStatus
Returns a duplicate of the value. Read more
1.0.0 · 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 VolumeStatus
impl Debug for VolumeStatus
Source§impl Default for VolumeStatus
impl Default for VolumeStatus
Source§fn default() -> VolumeStatus
fn default() -> VolumeStatus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VolumeStatus
impl<'de> Deserialize<'de> for VolumeStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for VolumeStatus
impl Ord for VolumeStatus
Source§fn cmp(&self, other: &VolumeStatus) -> Ordering
fn cmp(&self, other: &VolumeStatus) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for VolumeStatus
impl PartialEq for VolumeStatus
Source§impl PartialOrd for VolumeStatus
impl PartialOrd for VolumeStatus
Source§impl Serialize for VolumeStatus
impl Serialize for VolumeStatus
impl Eq for VolumeStatus
impl StructuralPartialEq for VolumeStatus
Auto Trait Implementations§
impl Freeze for VolumeStatus
impl RefUnwindSafe for VolumeStatus
impl Send for VolumeStatus
impl Sync for VolumeStatus
impl Unpin for VolumeStatus
impl UnwindSafe for VolumeStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.