#[non_exhaustive]pub enum NormMessageType {
Info,
Data,
Cmd,
Nack,
Ack,
Report,
Other(u8),
}Expand description
NORM message type (RFC 5740 §4.1).
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.
Info
NORM_INFO (1).
Data
NORM_DATA (2).
Cmd
NORM_CMD (3).
Nack
NORM_NACK (4).
Ack
NORM_ACK (5).
Report
NORM_REPORT (6).
Other(u8)
Any other (unassigned) 4-bit type value.
Implementations§
Trait Implementations§
Source§impl Clone for NormMessageType
impl Clone for NormMessageType
Source§fn clone(&self) -> NormMessageType
fn clone(&self) -> NormMessageType
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 NormMessageType
Source§impl Debug for NormMessageType
impl Debug for NormMessageType
Source§impl Display for NormMessageType
impl Display for NormMessageType
impl Eq for NormMessageType
Source§impl Hash for NormMessageType
impl Hash for NormMessageType
Source§impl PartialEq for NormMessageType
impl PartialEq for NormMessageType
Source§impl Serialize for NormMessageType
Available on crate feature serde only.
impl Serialize for NormMessageType
Available on crate feature
serde only.impl StructuralPartialEq for NormMessageType
Auto Trait Implementations§
impl Freeze for NormMessageType
impl RefUnwindSafe for NormMessageType
impl Send for NormMessageType
impl Sync for NormMessageType
impl Unpin for NormMessageType
impl UnsafeUnpin for NormMessageType
impl UnwindSafe for NormMessageType
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