pub struct Emitted {
pub seq: SequenceNumber,
pub event: Event,
}Expand description
An event the cursor produced in live mode, with the log position it must occupy.
The cursor cannot persist anything and cannot read a clock, so the caller
wraps this in an EventEnvelope (supplying the run id and timestamp at
the IO edge) and appends it to durable storage.
Fields§
§seq: SequenceNumberThe log position this event must be appended at.
event: EventThe event payload to persist.
Trait Implementations§
impl StructuralPartialEq for Emitted
Auto Trait Implementations§
impl Freeze for Emitted
impl RefUnwindSafe for Emitted
impl Send for Emitted
impl Sync for Emitted
impl Unpin for Emitted
impl UnsafeUnpin for Emitted
impl UnwindSafe for Emitted
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