#[non_exhaustive]pub enum ModuleIdCommandKind {
Acknowledgement,
SetModuleId,
Reserved(u8),
}Expand description
command values for module_id_command() (Table 7).
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.
Acknowledgement
0x01 — host accepts the Module ID; module continues to Profile.
SetModuleId
0x02 — module_id carries a new ID to set.
Reserved(u8)
Any other value (reserved).
Implementations§
Trait Implementations§
Source§impl Clone for ModuleIdCommandKind
impl Clone for ModuleIdCommandKind
Source§fn clone(&self) -> ModuleIdCommandKind
fn clone(&self) -> ModuleIdCommandKind
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 ModuleIdCommandKind
Source§impl Debug for ModuleIdCommandKind
impl Debug for ModuleIdCommandKind
Source§impl Display for ModuleIdCommandKind
impl Display for ModuleIdCommandKind
impl Eq for ModuleIdCommandKind
Source§impl PartialEq for ModuleIdCommandKind
impl PartialEq for ModuleIdCommandKind
Source§impl Serialize for ModuleIdCommandKind
Available on crate feature serde only.
impl Serialize for ModuleIdCommandKind
Available on crate feature
serde only.impl StructuralPartialEq for ModuleIdCommandKind
Auto Trait Implementations§
impl Freeze for ModuleIdCommandKind
impl RefUnwindSafe for ModuleIdCommandKind
impl Send for ModuleIdCommandKind
impl Sync for ModuleIdCommandKind
impl Unpin for ModuleIdCommandKind
impl UnsafeUnpin for ModuleIdCommandKind
impl UnwindSafe for ModuleIdCommandKind
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