pub enum SessionError {
Io(Error),
Chain(ChainError),
Anchor(AnchorError),
Relay(RelayError),
Checkpoint(CheckpointError),
MissingCheckpoint {
checkpoint_hash: String,
},
CheckpointRegression {
held: String,
offered: String,
},
Lease(LeaseError),
}Expand description
A sync-session failure.
Variants§
Io(Error)
Chain(ChainError)
Anchor(AnchorError)
Relay(RelayError)
Checkpoint(CheckpointError)
MissingCheckpoint
The journal carries a truncation marker naming a checkpoint that is not present in the session’s checkpoint directory — resume is impossible without it (fetch it from the relay and retry).
CheckpointRegression
The relay served a “latest” checkpoint that does not cover the session’s current base — rebasing onto it would silently lose state.
Lease(LeaseError)
A lease-coordinator call failed (B5) — used by the best-effort local
gate SyncSession::record_intent_if_current.
Trait Implementations§
Source§impl Debug for SessionError
impl Debug for SessionError
Source§impl Display for SessionError
impl Display for SessionError
Source§impl Error for SessionError
impl Error for SessionError
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<AnchorError> for SessionError
impl From<AnchorError> for SessionError
Source§fn from(e: AnchorError) -> Self
fn from(e: AnchorError) -> Self
Converts to this type from the input type.
Source§impl From<ChainError> for SessionError
impl From<ChainError> for SessionError
Source§fn from(e: ChainError) -> Self
fn from(e: ChainError) -> Self
Converts to this type from the input type.
Source§impl From<CheckpointError> for SessionError
impl From<CheckpointError> for SessionError
Source§fn from(e: CheckpointError) -> Self
fn from(e: CheckpointError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for SessionError
impl From<Error> for SessionError
Source§impl From<LeaseError> for SessionError
impl From<LeaseError> for SessionError
Source§fn from(e: LeaseError) -> Self
fn from(e: LeaseError) -> Self
Converts to this type from the input type.
Source§impl From<RelayError> for SessionError
impl From<RelayError> for SessionError
Source§fn from(e: RelayError) -> Self
fn from(e: RelayError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SessionError
impl !UnwindSafe for SessionError
impl Freeze for SessionError
impl Send for SessionError
impl Sync for SessionError
impl Unpin for SessionError
impl UnsafeUnpin for SessionError
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