Enum dbn::enums::StatUpdateAction
source · #[repr(u8)]pub enum StatUpdateAction {
New = 1,
Delete = 2,
}Expand description
The type of StatMsg update.
Variants§
Trait Implementations§
source§impl Clone for StatUpdateAction
impl Clone for StatUpdateAction
source§fn clone(&self) -> StatUpdateAction
fn clone(&self) -> StatUpdateAction
Returns a copy 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 StatUpdateAction
impl Debug for StatUpdateAction
source§impl From<StatUpdateAction> for u8
impl From<StatUpdateAction> for u8
source§fn from(enum_value: StatUpdateAction) -> Self
fn from(enum_value: StatUpdateAction) -> Self
Converts to this type from the input type.
source§impl PartialEq for StatUpdateAction
impl PartialEq for StatUpdateAction
source§fn eq(&self, other: &StatUpdateAction) -> bool
fn eq(&self, other: &StatUpdateAction) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<u8> for StatUpdateAction
impl TryFrom<u8> for StatUpdateAction
§type Error = TryFromPrimitiveError<StatUpdateAction>
type Error = TryFromPrimitiveError<StatUpdateAction>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for StatUpdateAction
impl TryFromPrimitive for StatUpdateAction
type Primitive = u8
type Error = TryFromPrimitiveError<StatUpdateAction>
const NAME: &'static str = "StatUpdateAction"
fn try_from_primitive( number: Self::Primitive ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for StatUpdateAction
impl Eq for StatUpdateAction
impl StructuralEq for StatUpdateAction
impl StructuralPartialEq for StatUpdateAction
Auto Trait Implementations§
impl RefUnwindSafe for StatUpdateAction
impl Send for StatUpdateAction
impl Sync for StatUpdateAction
impl Unpin for StatUpdateAction
impl UnwindSafe for StatUpdateAction
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