pub enum Frame {
Data {
frm_num: u8,
re_tx: bool,
ack_num: u8,
payload: Vec<u8>,
},
Ack {
ack_num: u8,
not_ready: bool,
},
Nak {
ack_num: u8,
not_ready: bool,
},
Rst,
RstAck {
version: u8,
code: u8,
},
Error {
version: u8,
code: u8,
},
}Expand description
One ASH frame.
Variants§
Data
Carries one EZSP frame.
Fields
Ack
Acknowledges every frame before ack_num.
Fields
Nak
Rejects: the frame ack_num was missing or bad.
Fields
Rst
Host to NCP: reset.
RstAck
NCP to host: reset done.
Error
NCP to host: fatal error, the NCP is now disconnected.
Implementations§
Trait Implementations§
impl Eq for Frame
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
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