pub enum SessionReplayError {
EmptyLog,
InvalidCreation,
SessionMismatch {
expected: SessionId,
actual: SessionId,
},
SequenceMismatch {
expected: SessionSequence,
actual: SessionSequence,
},
SequenceOverflow,
DuplicateRecord {
record_id: RecordId,
},
DuplicateEntity {
entity: &'static str,
},
InvalidReference {
reference: &'static str,
},
InvalidTransition {
transition: &'static str,
},
}Expand description
Deterministic failure while reducing durable records.
Variants§
EmptyLog
Replay requires at least one creation record.
InvalidCreation
The first record is not the sole session creation record.
SessionMismatch
One envelope belongs to another session.
Fields
SequenceMismatch
Authoritative sequence is not contiguous.
SequenceOverflow
Sequence cannot advance beyond its integer representation.
DuplicateRecord
Record identity was already present in the log.
DuplicateEntity
A globally stable entity identity was reused.
InvalidReference
A record references an entity that is absent or in the wrong state.
InvalidTransition
A known transition is invalid for the current state.
Implementations§
Source§impl SessionReplayError
impl SessionReplayError
Sourcepub const fn store_code(&self) -> SessionStoreErrorCode
pub const fn store_code(&self) -> SessionStoreErrorCode
Maps replay failures to a stable storage-facing classification.
Trait Implementations§
Source§impl Clone for SessionReplayError
impl Clone for SessionReplayError
Source§fn clone(&self) -> SessionReplayError
fn clone(&self) -> SessionReplayError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionReplayError
impl Debug for SessionReplayError
Source§impl Display for SessionReplayError
impl Display for SessionReplayError
impl Eq for SessionReplayError
Source§impl Error for SessionReplayError
impl Error for SessionReplayError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<SessionReplayError> for SessionArchiveError
impl From<SessionReplayError> for SessionArchiveError
Source§fn from(source: SessionReplayError) -> Self
fn from(source: SessionReplayError) -> Self
Converts to this type from the input type.
Source§impl From<SessionReplayError> for SessionStoreError
impl From<SessionReplayError> for SessionStoreError
Source§fn from(error: SessionReplayError) -> Self
fn from(error: SessionReplayError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SessionReplayError
impl PartialEq for SessionReplayError
impl StructuralPartialEq for SessionReplayError
Auto Trait Implementations§
impl Freeze for SessionReplayError
impl RefUnwindSafe for SessionReplayError
impl Send for SessionReplayError
impl Sync for SessionReplayError
impl Unpin for SessionReplayError
impl UnsafeUnpin for SessionReplayError
impl UnwindSafe for SessionReplayError
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