#[non_exhaustive]pub enum AeronCounterState {
Unused,
Allocated,
Reclaimed,
Unknown(i32),
}Expand description
Counter metadata record states. These are not counter IDs or type IDs.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unused
Native constant AERON_COUNTER_RECORD_UNUSED.
Allocated
Native constant AERON_COUNTER_RECORD_ALLOCATED.
Reclaimed
Native constant AERON_COUNTER_RECORD_RECLAIMED.
Unknown(i32)
An unrecognised value, preserved unchanged.
Implementations§
Trait Implementations§
Source§impl Clone for AeronCounterState
impl Clone for AeronCounterState
Source§fn clone(&self) -> AeronCounterState
fn clone(&self) -> AeronCounterState
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 AeronCounterState
Source§impl Debug for AeronCounterState
impl Debug for AeronCounterState
impl Eq for AeronCounterState
Source§impl From<AeronCounterState> for i32
impl From<AeronCounterState> for i32
Source§fn from(value: AeronCounterState) -> Self
fn from(value: AeronCounterState) -> Self
Converts to this type from the input type.
Source§impl From<i32> for AeronCounterState
impl From<i32> for AeronCounterState
Source§impl Hash for AeronCounterState
impl Hash for AeronCounterState
Source§impl PartialEq for AeronCounterState
impl PartialEq for AeronCounterState
Source§fn eq(&self, other: &AeronCounterState) -> bool
fn eq(&self, other: &AeronCounterState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AeronCounterState
Auto Trait Implementations§
impl Freeze for AeronCounterState
impl RefUnwindSafe for AeronCounterState
impl Send for AeronCounterState
impl Sync for AeronCounterState
impl Unpin for AeronCounterState
impl UnsafeUnpin for AeronCounterState
impl UnwindSafe for AeronCounterState
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