pub enum RegisterCommandRefusal {
NotImplemented,
NoReply,
}Expand description
How the fake refuses READREG and WRITEREG when told to.
Both are shapes a non-conformant device can take, and a controller has to survive either: one answers with a status it can act on, the other leaves it waiting out its retry budget.
Variants§
NotImplemented
Acknowledge with NOT_IMPLEMENTED (0x8001) and do nothing.
NoReply
Drop the command without any acknowledgement.
Trait Implementations§
Source§impl Clone for RegisterCommandRefusal
impl Clone for RegisterCommandRefusal
impl Copy for RegisterCommandRefusal
Source§impl Debug for RegisterCommandRefusal
impl Debug for RegisterCommandRefusal
impl Eq for RegisterCommandRefusal
Source§impl PartialEq for RegisterCommandRefusal
impl PartialEq for RegisterCommandRefusal
impl StructuralPartialEq for RegisterCommandRefusal
Auto Trait Implementations§
impl Freeze for RegisterCommandRefusal
impl RefUnwindSafe for RegisterCommandRefusal
impl Send for RegisterCommandRefusal
impl Sync for RegisterCommandRefusal
impl Unpin for RegisterCommandRefusal
impl UnsafeUnpin for RegisterCommandRefusal
impl UnwindSafe for RegisterCommandRefusal
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