pub enum SyncError {
Unavailable(String),
RetryAfter {
secs: f64,
detail: String,
},
Transient(String),
TokenExpired,
ZoneMissing,
Persistence(String),
Conflict,
Cancelled,
}Variants§
Sync cannot run at all right now (signed out, restricted, entitlement missing). Surfaced to the user; retried on the backoff cadence.
RetryAfter
Transient failure with a server- or policy-supplied delay.
Transient(String)
Transient failure without a delay hint.
TokenExpired
The backend invalidated the change token. The engine resets the token once and replays the full zone; local data is never discarded.
ZoneMissing
The zone was deleted or never created. The engine calls prepare
again once and replays the full zone.
Persistence(String)
Durable local state could not be written or read back.
Conflict
Conditional save refused: the server record changed since the change tag the write was based on. The outcome carries the server record.
Cancelled
The auth generation changed or sync was disabled mid-pass.
Implementations§
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)>
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()
impl StructuralPartialEq for SyncError
Auto Trait Implementations§
impl Freeze for SyncError
impl RefUnwindSafe for SyncError
impl Send for SyncError
impl Sync for SyncError
impl Unpin for SyncError
impl UnsafeUnpin for SyncError
impl UnwindSafe for SyncError
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