Enum SyncError
#[non_exhaustive]pub enum SyncError {
BelowRetentionFloor {
floor: EventId,
},
BatchTooLarge {
actual: usize,
limit: usize,
},
UnknownPeer {
name: Box<str>,
},
}Expand description
Why a peer exchange failed for reasons no adapter owns.
Adapters report their own failures through
SyncPeer::Error. This is for the runner above them, which has failure
modes of its own: a token that no longer resolves, a batch the far side
declared it cannot take.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
BelowRetentionFloor
The resume token points below the far side’s retention floor.
Not retryable. The gap has to be closed by a full re-seed or accepted.
BatchTooLarge
The batch exceeds what the peer declared it can accept.
Retryable only after splitting; retrying the same batch will fail identically for ever.
UnknownPeer
A peer named in the runner’s configuration is not reachable by any configured transport.
Trait Implementations§
§impl Classify for SyncError
The runner’s own failures state a class too, so a runner handles them and a
peer’s through one path (ADR-0026 §2.4).
impl Classify for SyncError
The runner’s own failures state a class too, so a runner handles them and a peer’s through one path (ADR-0026 §2.4).
§fn class(&self) -> FailureClass
fn class(&self) -> FailureClass
§impl Error for SyncError
impl Error for SyncError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()