pub enum Error {
Show 17 variants
Storage(String),
SyncQueue(String),
Conflict(String),
Merge(String),
RetryExhausted {
attempts: usize,
message: String,
},
Network(String),
Serialization(String),
Deserialization(String),
InvalidOperation(String),
NotFound(String),
VersionMismatch {
expected: u64,
actual: u64,
},
CapacityExceeded(String),
Config(String),
Database(String),
Lock(String),
Timeout(String),
Internal(String),
}Expand description
Errors that can occur during offline operations
Variants§
Storage(String)
Storage backend error
SyncQueue(String)
Sync queue error
Conflict(String)
Conflict detected
Merge(String)
Merge error
RetryExhausted
Retry exhausted
Network(String)
Network error
Serialization(String)
Serialization error
Deserialization(String)
Deserialization error
InvalidOperation(String)
Invalid operation
NotFound(String)
Record not found
VersionMismatch
Version mismatch
CapacityExceeded(String)
Capacity exceeded
Config(String)
Configuration error
Database(String)
Database error
Lock(String)
Lock error
Timeout(String)
Timeout error
Internal(String)
Internal error
Implementations§
Source§impl Error
impl Error
Sourcepub fn sync_queue(message: impl Into<String>) -> Self
pub fn sync_queue(message: impl Into<String>) -> Self
Create a sync queue error
Sourcepub fn serialization(message: impl Into<String>) -> Self
pub fn serialization(message: impl Into<String>) -> Self
Create a serialization error
Sourcepub fn deserialization(message: impl Into<String>) -> Self
pub fn deserialization(message: impl Into<String>) -> Self
Create a deserialization error
Sourcepub fn invalid_operation(message: impl Into<String>) -> Self
pub fn invalid_operation(message: impl Into<String>) -> Self
Create an invalid operation error
Sourcepub fn version_mismatch(expected: u64, actual: u64) -> Self
pub fn version_mismatch(expected: u64, actual: u64) -> Self
Create a version mismatch error
Sourcepub fn capacity_exceeded(message: impl Into<String>) -> Self
pub fn capacity_exceeded(message: impl Into<String>) -> Self
Create a capacity exceeded error
Sourcepub fn not_supported(message: impl Into<String>) -> Self
pub fn not_supported(message: impl Into<String>) -> Self
Create a not supported error
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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