pub struct Header<'a> {
pub seq: u8,
pub control: u8,
pub frame_id: u16,
pub params: &'a [u8],
}Expand description
A parsed frame header and its parameters.
Fields§
§seq: u8Sequence number, echoed in the response.
control: u8Frame control, low byte.
frame_id: u16Frame id.
params: &'a [u8]Parameters after the header.
Implementations§
Source§impl Header<'_>
impl Header<'_>
Sourcepub fn is_response(&self) -> bool
pub fn is_response(&self) -> bool
NCP to host.
Sourcepub fn is_callback(&self) -> bool
pub fn is_callback(&self) -> bool
A callback (sync or async) rather than the response to a command.
Trait Implementations§
impl<'a> Eq for Header<'a>
impl<'a> StructuralPartialEq for Header<'a>
Auto Trait Implementations§
impl<'a> Freeze for Header<'a>
impl<'a> RefUnwindSafe for Header<'a>
impl<'a> Send for Header<'a>
impl<'a> Sync for Header<'a>
impl<'a> Unpin for Header<'a>
impl<'a> UnsafeUnpin for Header<'a>
impl<'a> UnwindSafe for Header<'a>
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