pub struct TimestampMapping<T: Buf> { /* private fields */ }Expand description
A Timestamp message mapping.
Implementations§
Source§impl<T: Buf> TimestampMapping<T>
impl<T: Buf> TimestampMapping<T>
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Consumes the mapping and returns the underlying buffer.
Sourcepub fn read_checksum(&self) -> Checksum
pub fn read_checksum(&self) -> Checksum
Reads the checksum.
Sourcepub fn read_identifier(&self) -> u16
pub fn read_identifier(&self) -> u16
Reads the identifier.
Sourcepub fn read_sequence_number(&self) -> u16
pub fn read_sequence_number(&self) -> u16
Reads the sequence number.
Sourcepub fn read_originate_timestamp(&self) -> u32
pub fn read_originate_timestamp(&self) -> u32
Reads the originate timestamp.
Sourcepub fn read_receive_timestamp(&self) -> u32
pub fn read_receive_timestamp(&self) -> u32
Reads the receive timestamp.
Sourcepub fn read_transmit_timestamp(&self) -> u32
pub fn read_transmit_timestamp(&self) -> u32
Reads the transmit timestamp.
Source§impl<T: BufMut> TimestampMapping<T>
impl<T: BufMut> TimestampMapping<T>
Sourcepub fn write_type(&mut self, type: Type) -> BufResult<()>
pub fn write_type(&mut self, type: Type) -> BufResult<()>
Writes the type.
Sourcepub fn write_code(&mut self, code: u8) -> BufResult<()>
pub fn write_code(&mut self, code: u8) -> BufResult<()>
Writes the code.
Sourcepub fn write_checksum(&mut self, checksum: Checksum) -> BufResult<()>
pub fn write_checksum(&mut self, checksum: Checksum) -> BufResult<()>
Writes the checksum.
Sourcepub fn write_identifier(&mut self, identifier: u16) -> BufResult<()>
pub fn write_identifier(&mut self, identifier: u16) -> BufResult<()>
Writes the identifier.
Sourcepub fn write_sequence_number(&mut self, sequence_number: u16) -> BufResult<()>
pub fn write_sequence_number(&mut self, sequence_number: u16) -> BufResult<()>
Writes the sequence number.
Sourcepub fn write_originate_timestamp(&mut self, timestamp: u32) -> BufResult<()>
pub fn write_originate_timestamp(&mut self, timestamp: u32) -> BufResult<()>
Writes the originate timestamp.
Sourcepub fn write_receive_timestamp(&mut self, timestamp: u32) -> BufResult<()>
pub fn write_receive_timestamp(&mut self, timestamp: u32) -> BufResult<()>
Writes the receive timestamp.
Sourcepub fn write_transmit_timestamp(&mut self, timestamp: u32) -> BufResult<()>
pub fn write_transmit_timestamp(&mut self, timestamp: u32) -> BufResult<()>
Writes the transmit timestamp.
Trait Implementations§
Source§impl<T: Clone + Buf> Clone for TimestampMapping<T>
impl<T: Clone + Buf> Clone for TimestampMapping<T>
Source§fn clone(&self) -> TimestampMapping<T>
fn clone(&self) -> TimestampMapping<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<T: Copy + Buf> Copy for TimestampMapping<T>
impl<T: Eq + Buf> Eq for TimestampMapping<T>
impl<T: PartialEq + Buf> StructuralPartialEq for TimestampMapping<T>
Auto Trait Implementations§
impl<T> Freeze for TimestampMapping<T>where
T: Freeze,
impl<T> RefUnwindSafe for TimestampMapping<T>where
T: RefUnwindSafe,
impl<T> Send for TimestampMapping<T>where
T: Send,
impl<T> Sync for TimestampMapping<T>where
T: Sync,
impl<T> Unpin for TimestampMapping<T>where
T: Unpin,
impl<T> UnsafeUnpin for TimestampMapping<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for TimestampMapping<T>where
T: UnwindSafe,
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