#[repr(u8)]pub enum DegradationDirection {
Up = 0,
Down = 1,
}Variants§
Up = 0
The degradation of the resource is indicated by an upwards moving/increasing value
Down = 1
The degradation of the resource is indicated by a downwards moving/decreasing value
Implementations§
Trait Implementations§
Source§impl Clone for DegradationDirection
impl Clone for DegradationDirection
Source§fn clone(&self) -> DegradationDirection
fn clone(&self) -> DegradationDirection
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 DegradationDirection
impl Debug for DegradationDirection
Source§impl<'de> Deserialize<'de> for DegradationDirection
impl<'de> Deserialize<'de> for DegradationDirection
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 From<DegradationDirection> for u8
impl From<DegradationDirection> for u8
Source§fn from(val: DegradationDirection) -> Self
fn from(val: DegradationDirection) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DegradationDirection
impl PartialEq for DegradationDirection
Source§impl Serialize for DegradationDirection
impl Serialize for DegradationDirection
impl Copy for DegradationDirection
impl Eq for DegradationDirection
impl StructuralPartialEq for DegradationDirection
Auto Trait Implementations§
impl Freeze for DegradationDirection
impl RefUnwindSafe for DegradationDirection
impl Send for DegradationDirection
impl Sync for DegradationDirection
impl Unpin for DegradationDirection
impl UnwindSafe for DegradationDirection
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