pub enum LogError {
Envelope(EnvelopeError),
Cancelled,
DeadlineExceeded,
Closed,
NotLeader {
leader_hint: Option<String>,
},
Unsupported(&'static str),
Internal(String),
}Expand description
Errors produced by a CommitLog.
Variants§
Envelope(EnvelopeError)
The command envelope was malformed or unverifiable.
Cancelled
The operation was cancelled.
DeadlineExceeded
The operation’s deadline expired.
Closed
The log is closed and rejects new proposals.
NotLeader
The receiving replica is not the leader for the consensus group (spec section 11.7). Retryable with the returned leader hint.
Category mapping: this variant carries
mongreldb_types::errors::ErrorCategory::NotLeader semantics.
No LogError → ErrorCategory bridge exists yet (the engine
commit path does not convert LogError today); the bridge lands
with the Stage 2G gateway/routing wave, which consumes the hint.
Fields
Unsupported(&'static str)
The implementation does not provide this operation.
Internal(String)
Any other log failure.
Trait Implementations§
Source§impl Error for LogError
impl Error for LogError
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<EnvelopeError> for LogError
impl From<EnvelopeError> for LogError
Source§fn from(source: EnvelopeError) -> Self
fn from(source: EnvelopeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LogError
impl RefUnwindSafe for LogError
impl Send for LogError
impl Sync for LogError
impl Unpin for LogError
impl UnsafeUnpin for LogError
impl UnwindSafe for LogError
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