pub struct TimeCorrectionRepr {
pub time_correction: Duration,
pub nack: bool,
}
Expand description
A high-level representation of a Time Correction Header Information Element.
Fields§
§time_correction: Duration
The time correction value in microseconds.
nack: bool
The negative acknowledgment flag.
Implementations§
Source§impl TimeCorrectionRepr
impl TimeCorrectionRepr
Sourcepub fn parse(tc: &TimeCorrection<&[u8]>) -> Self
pub fn parse(tc: &TimeCorrection<&[u8]>) -> Self
Parse a Time Correction Header Information Element.
Sourcepub const fn buffer_len(&self) -> usize
pub const fn buffer_len(&self) -> usize
The buffer length required to emit the Time Correction Header Information Element.
Sourcepub fn emit(&self, buffer: &mut TimeCorrection<&mut [u8]>)
pub fn emit(&self, buffer: &mut TimeCorrection<&mut [u8]>)
Emit the Time Correction Header Information Element into a buffer.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TimeCorrectionRepr
impl RefUnwindSafe for TimeCorrectionRepr
impl Send for TimeCorrectionRepr
impl Sync for TimeCorrectionRepr
impl Unpin for TimeCorrectionRepr
impl UnwindSafe for TimeCorrectionRepr
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