pub struct Header {
pub system_id: u8,
pub component_id: u8,
pub sequence: u8,
}Expand description
The addressing fields a sender stamps on every frame.
A frame says who sent it (a system and a component) and where it sits in that sender’s stream (a sequence number that wraps at 256), which lets a receiver detect dropped frames.
Fields§
§system_id: u8The sending system’s id, such as a vehicle’s.
component_id: u8The sending component’s id within the system, such as an autopilot or a camera.
sequence: u8The sender’s per-link sequence number for this frame.
Implementations§
Trait Implementations§
impl Copy for Header
impl Eq for Header
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnsafeUnpin for Header
impl UnwindSafe for Header
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