#[non_exhaustive]#[repr(u8)]pub enum IdentificationCode {
String = 1,
Epoch = 2,
}Expand description
Identification block contains a string that describes the producer details, and an epoch that defines the auto-upgrade capability.
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.
Trait Implementations§
Source§impl Clone for IdentificationCode
impl Clone for IdentificationCode
Source§fn clone(&self) -> IdentificationCode
fn clone(&self) -> IdentificationCode
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 IdentificationCode
impl Debug for IdentificationCode
Source§impl TryFrom<u8> for IdentificationCode
impl TryFrom<u8> for IdentificationCode
Source§type Error = TryFromPrimitiveError<IdentificationCode>
type Error = TryFromPrimitiveError<IdentificationCode>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for IdentificationCode
impl TryFromPrimitive for IdentificationCode
const NAME: &'static str = "IdentificationCode"
type Primitive = u8
type Error = TryFromPrimitiveError<IdentificationCode>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for IdentificationCode
Auto Trait Implementations§
impl Freeze for IdentificationCode
impl RefUnwindSafe for IdentificationCode
impl Send for IdentificationCode
impl Sync for IdentificationCode
impl Unpin for IdentificationCode
impl UnwindSafe for IdentificationCode
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