pub struct NewRecord<'a> {
pub schema_id: u32,
pub venue_ts_ns: u64,
pub local_ts_ns: u64,
pub payload: &'a [u8],
}Expand description
A record to append. The writer assigns the sequence number.
Fields§
§schema_id: u32Caller-defined event type or schema identifier. Opaque to tickertape.
venue_ts_ns: u64Caller-supplied timestamp, by convention nanoseconds since the Unix epoch (e.g. the venue’s event time). 0 means “not set”.
local_ts_ns: u64Caller-supplied timestamp, by convention nanoseconds since the Unix epoch (e.g. local receive time).
0 means “not set”. See clock::realtime_ns.
payload: &'a [u8]The payload bytes.
Trait Implementations§
impl<'a> Copy for NewRecord<'a>
impl<'a> Eq for NewRecord<'a>
impl<'a> StructuralPartialEq for NewRecord<'a>
Auto Trait Implementations§
impl<'a> Forget for NewRecord<'a>
impl<'a> Freeze for NewRecord<'a>
impl<'a> Move for NewRecord<'a>
impl<'a> RefUnwindSafe for NewRecord<'a>
impl<'a> Send for NewRecord<'a>
impl<'a> Sync for NewRecord<'a>
impl<'a> Unpin for NewRecord<'a>
impl<'a> UnsafeUnpin for NewRecord<'a>
impl<'a> UnwindSafe for NewRecord<'a>
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