pub enum Nak {
Full,
Invalid,
StopCondition,
}Expand description
The NAK message kinds that may be returned by the DAC.
Variants§
Full
The write command could not be performed because there was not enough buffer space when it was received.
Invalid
The command contained an invalid command byte or parameters.
StopCondition
An emergency-stop condition still exists.
Implementations§
Source§impl Nak
impl Nak
Sourcepub fn from_protocol(nak: u8) -> Option<Self>
pub fn from_protocol(nak: u8) -> Option<Self>
Produce a Nak from the low-level protocol byte representation.
Sourcepub fn to_protocol(&self) -> u8
pub fn to_protocol(&self) -> u8
Convert the Nak to the low-level protocol byte representation.
Trait Implementations§
impl Copy for Nak
impl Eq for Nak
impl StructuralPartialEq for Nak
Auto Trait Implementations§
impl Freeze for Nak
impl RefUnwindSafe for Nak
impl Send for Nak
impl Sync for Nak
impl Unpin for Nak
impl UnwindSafe for Nak
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