pub enum SyncError {
IdentityMismatch(String),
ApplyInProgress(String),
ApplyStateRequiresRepair(String),
UntrustedApplyBoundary(String),
InvalidRequest(String),
CorruptState(String),
}Expand description
A refusal raised by the sync crate. See the module docs for the contract.
Variants§
IdentityMismatch(String)
The replica’s sync identity does not descend from the history it was asked to apply. Resuming is impossible; the host must rebootstrap.
ApplyInProgress(String)
A stranded in-progress apply intent covers a different range than the caller’s, and the catalog LSN does not prove it void. Resume exactly from the recovered catalog boundary, or repair.
ApplyStateRequiresRepair(String)
The local apply state and the catalog disagree in a way no crash of a well-behaved apply produces. Manual repair required before retry.
UntrustedApplyBoundary(String)
The requested chunk start is not a boundary the local apply state vouches for. Re-derive the resume point from the catalog LSN.
InvalidRequest(String)
Catch-all for refusals of the caller’s request
(io::ErrorKind::InvalidInput).
CorruptState(String)
Catch-all for on-disk or protocol state this crate refuses to trust
(io::ErrorKind::InvalidData).
Trait Implementations§
Source§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()