pub enum RecordError {
NeedsReservation(u64),
DataTooLong,
}Expand description
Why an event could not be recorded.
Variants§
NeedsReservation(u64)
The event-number counter needs a durable reservation first (§7.14.1.1).
The caller must persist EventNumbers::reservation and call
EventStore::reserved, then try again. Handing out an unreserved number would let a
restart rewind the counter — and a record with a reused number tells a client that
nothing happened when something did.
DataTooLong
The payload is longer than EVENT_DATA_MAX.
Trait Implementations§
Source§impl Clone for RecordError
impl Clone for RecordError
impl Copy for RecordError
Source§impl Debug for RecordError
impl Debug for RecordError
impl Eq for RecordError
Source§impl PartialEq for RecordError
impl PartialEq for RecordError
impl StructuralPartialEq for RecordError
Auto Trait Implementations§
impl Forget for RecordError
impl Freeze for RecordError
impl Move for RecordError
impl RefUnwindSafe for RecordError
impl Send for RecordError
impl Sync for RecordError
impl Unpin for RecordError
impl UnsafeUnpin for RecordError
impl UnwindSafe for RecordError
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