#[repr(C)]pub struct WithTsOut<T: HasRType> {
pub rec: T,
pub ts_out: u64,
}Expand description
Wrapper object for records that include the live gateway send timestamp (ts_out).
Fields§
§rec: TThe inner record.
ts_out: u64The live gateway send timestamp expressed as number of nanoseconds since the UNIX epoch.
Implementations§
Trait Implementations§
source§impl<T: HasRType> HasRType for WithTsOut<T>
impl<T: HasRType> HasRType for WithTsOut<T>
source§fn has_rtype(rtype: u8) -> bool
fn has_rtype(rtype: u8) -> bool
Returns
true if rtype matches the value associated with the implementing type.source§fn header(&self) -> &RecordHeader
fn header(&self) -> &RecordHeader
Returns a reference to the
RecordHeader that comes at the beginning of all
record types.source§fn header_mut(&mut self) -> &mut RecordHeader
fn header_mut(&mut self) -> &mut RecordHeader
Returns a mutable reference to the
RecordHeader that comes at the beginning of
all record types.source§fn record_size(&self) -> usize
fn record_size(&self) -> usize
Returns the size of the record in bytes.
source§impl<T: PartialEq + HasRType> PartialEq<WithTsOut<T>> for WithTsOut<T>
impl<T: PartialEq + HasRType> PartialEq<WithTsOut<T>> for WithTsOut<T>
impl<T: Eq + HasRType> Eq for WithTsOut<T>
impl<T: HasRType> StructuralEq for WithTsOut<T>
impl<T: HasRType> StructuralPartialEq for WithTsOut<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for WithTsOut<T>where T: RefUnwindSafe,
impl<T> Send for WithTsOut<T>where T: Send,
impl<T> Sync for WithTsOut<T>where T: Sync,
impl<T> Unpin for WithTsOut<T>where T: Unpin,
impl<T> UnwindSafe for WithTsOut<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