#[repr(C)]pub enum NodeStatusType {
RUNNING = 0,
STOPPED = 1,
FAILED = 2,
DEACTIVATED = 3,
INPROGRESS = 4,
}
Expand description
Status string for the compute node.
Enumeration of values.
Since this enum’s variants do not hold data, we can easily define them them as #[repr(C)]
which helps with FFI.
Variants§
Trait Implementations§
Source§impl Clone for NodeStatusType
impl Clone for NodeStatusType
Source§fn clone(&self) -> NodeStatusType
fn clone(&self) -> NodeStatusType
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 NodeStatusType
impl Debug for NodeStatusType
Source§impl<'de> Deserialize<'de> for NodeStatusType
impl<'de> Deserialize<'de> for NodeStatusType
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 Display for NodeStatusType
impl Display for NodeStatusType
Source§impl FromStr for NodeStatusType
impl FromStr for NodeStatusType
Source§impl Ord for NodeStatusType
impl Ord for NodeStatusType
Source§fn cmp(&self, other: &NodeStatusType) -> Ordering
fn cmp(&self, other: &NodeStatusType) -> 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 NodeStatusType
impl PartialEq for NodeStatusType
Source§impl PartialOrd for NodeStatusType
impl PartialOrd for NodeStatusType
Source§impl Serialize for NodeStatusType
impl Serialize for NodeStatusType
impl Copy for NodeStatusType
impl Eq for NodeStatusType
impl StructuralPartialEq for NodeStatusType
Auto Trait Implementations§
impl Freeze for NodeStatusType
impl RefUnwindSafe for NodeStatusType
impl Send for NodeStatusType
impl Sync for NodeStatusType
impl Unpin for NodeStatusType
impl UnwindSafe for NodeStatusType
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