pub struct PtpHeader {
pub message_type: PtpMessageType,
pub version: u8,
pub message_length: u16,
pub domain: u8,
pub flags: u16,
pub correction_ns: i64,
pub source_clock_id: [u8; 8],
pub source_port: u16,
pub sequence_id: u16,
}Expand description
The parsed PTP common header (the first 34 bytes of every message).
Fields§
§message_type: PtpMessageType§version: u8§message_length: u16§domain: u8§flags: u16§correction_ns: i64correctionField in ns (the fractional-ns low 16 bits dropped).
source_clock_id: [u8; 8]§source_port: u16§sequence_id: u16Implementations§
Trait Implementations§
impl Copy for PtpHeader
impl Eq for PtpHeader
impl StructuralPartialEq for PtpHeader
Auto Trait Implementations§
impl Freeze for PtpHeader
impl RefUnwindSafe for PtpHeader
impl Send for PtpHeader
impl Sync for PtpHeader
impl Unpin for PtpHeader
impl UnsafeUnpin for PtpHeader
impl UnwindSafe for PtpHeader
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