#[non_exhaustive]pub enum SyncError {
OutboxFull {
capacity: usize,
current: usize,
},
BufferFull(usize),
Transport(String),
Conflict {
entity_type: String,
entity_id: String,
description: String,
},
NotInitialized,
Serialization(String),
Storage(String),
InvalidConfig(String),
DuplicateEvent(String),
SequenceOutOfRange {
requested: u64,
head: u64,
},
}Expand description
Errors that can occur during sync operations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
OutboxFull
The outbox has reached its maximum capacity.
BufferFull(usize)
The event buffer has reached its maximum capacity (informational; old events are evicted).
Transport(String)
A transport-level error occurred during push or pull.
Conflict
A conflict was detected between local and remote events.
Fields
NotInitialized
The sync engine has not been initialized.
Serialization(String)
A serialization or deserialization error occurred.
Storage(String)
A local storage operation failed (for durable outbox persistence).
InvalidConfig(String)
An invalid configuration value was provided.
DuplicateEvent(String)
An event with a duplicate ID was detected.
SequenceOutOfRange
The requested sequence number is out of range.
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()
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