pub struct Committed { /* private fields */ }Expand description
What the Ledger’s writer broadcasts: a record, and the
ServerFrame::Event text that carries it. Cloning copies no bytes.
Implementations§
Source§impl Committed
impl Committed
Sourcepub fn new(record: EventRecord) -> Result<Self, AxError>
pub fn new(record: EventRecord) -> Result<Self, AxError>
Spells the frame: {"event":, the record’s JSON, } - the shape
the externally tagged ServerFrame::Event serialises to.
§Errors
WireMismatch when the record does not serialise; that record
reaches no socket, and the gap in seq it leaves makes each live
session send Lagged at the next record (crates/wire/spec/Reception.lean §8-41).
Sourcepub fn record(&self) -> &EventRecord
pub fn record(&self) -> &EventRecord
The record the frame carries.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Committed
impl RefUnwindSafe for Committed
impl Send for Committed
impl Sync for Committed
impl Unpin for Committed
impl UnsafeUnpin for Committed
impl UnwindSafe for Committed
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