#[repr(i32)]pub enum StagePreparationState {
Unspecified = 0,
Assigned = 1,
Downloading = 2,
Available = 3,
Resolving = 4,
Loading = 5,
Ready = 6,
Failed = 7,
Cancelled = 8,
}Variants§
Unspecified = 0
Assigned = 1
Downloading = 2
Available = 3
Resolving = 4
Loading = 5
Ready = 6
Failed = 7
Cancelled = 8
Implementations§
Source§impl StagePreparationState
impl StagePreparationState
Sourcepub const fn is_valid(value: i32) -> bool
pub const fn is_valid(value: i32) -> bool
Returns true if value is a variant of StagePreparationState.
Sourcepub fn from_i32(value: i32) -> Option<StagePreparationState>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<StagePreparationState>
Use the TryFrom<i32> implementation instead
Converts an i32 to a StagePreparationState, or None if value is not a valid variant.
Source§impl StagePreparationState
impl StagePreparationState
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for StagePreparationState
impl Clone for StagePreparationState
Source§fn clone(&self) -> StagePreparationState
fn clone(&self) -> StagePreparationState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StagePreparationState
Source§impl Debug for StagePreparationState
impl Debug for StagePreparationState
Source§impl Default for StagePreparationState
impl Default for StagePreparationState
Source§fn default() -> StagePreparationState
fn default() -> StagePreparationState
Returns the “default value” for a type. Read more
impl Eq for StagePreparationState
Source§impl From<StagePreparationState> for i32
impl From<StagePreparationState> for i32
Source§fn from(value: StagePreparationState) -> i32
fn from(value: StagePreparationState) -> i32
Converts to this type from the input type.
Source§impl Hash for StagePreparationState
impl Hash for StagePreparationState
Source§impl Ord for StagePreparationState
impl Ord for StagePreparationState
Source§fn cmp(&self, other: &StagePreparationState) -> Ordering
fn cmp(&self, other: &StagePreparationState) -> Ordering
1.21.0 (const: unstable) · 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 StagePreparationState
impl PartialEq for StagePreparationState
Source§impl PartialOrd for StagePreparationState
impl PartialOrd for StagePreparationState
impl StructuralPartialEq for StagePreparationState
Source§impl TryFrom<i32> for StagePreparationState
impl TryFrom<i32> for StagePreparationState
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<StagePreparationState, UnknownEnumValue>
fn try_from(value: i32) -> Result<StagePreparationState, UnknownEnumValue>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for StagePreparationState
impl RefUnwindSafe for StagePreparationState
impl Send for StagePreparationState
impl Sync for StagePreparationState
impl Unpin for StagePreparationState
impl UnsafeUnpin for StagePreparationState
impl UnwindSafe for StagePreparationState
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