pub enum ElaraError {
Show 23 variants
InvalidWireFormat(String),
BufferTooShort {
expected: usize,
actual: usize,
},
UnknownPacketClass(u8),
UnknownEventType(u8),
DecryptionFailed,
InvalidSignature,
ReplayDetected(u32),
RatchetOutOfSync,
Unauthorized {
node: NodeId,
state: StateId,
},
AuthorityRevoked(NodeId),
CausalityViolation,
MissingDependency(EventId),
StateNotFound(StateId),
StateBoundsExceeded,
RateLimitExceeded,
EntropyExceeded,
EventTooLate,
EventTooEarly,
SessionNotFound,
SessionMismatch,
NodeNotInSession,
TransportError(String),
ConnectionFailed,
}Expand description
Core ELARA errors
Variants§
InvalidWireFormat(String)
BufferTooShort
UnknownPacketClass(u8)
UnknownEventType(u8)
DecryptionFailed
InvalidSignature
ReplayDetected(u32)
RatchetOutOfSync
Fields
AuthorityRevoked(NodeId)
CausalityViolation
MissingDependency(EventId)
StateNotFound(StateId)
StateBoundsExceeded
RateLimitExceeded
EntropyExceeded
EventTooLate
EventTooEarly
SessionNotFound
SessionMismatch
NodeNotInSession
TransportError(String)
ConnectionFailed
Trait Implementations§
Source§impl Debug for ElaraError
impl Debug for ElaraError
Source§impl Display for ElaraError
impl Display for ElaraError
Source§impl Error for ElaraError
impl Error for ElaraError
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()
Auto Trait Implementations§
impl Freeze for ElaraError
impl RefUnwindSafe for ElaraError
impl Send for ElaraError
impl Sync for ElaraError
impl Unpin for ElaraError
impl UnwindSafe for ElaraError
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