pub enum SyncError {
Message(MessageError),
DiffDecode(String),
DiffApply(String),
VersionMismatch {
expected: u64,
actual: u64,
},
NotInitialized,
}Available on crate feature
sync only.Expand description
Errors from the sync engine.
Variants§
Message(MessageError)
Error encoding or decoding sync messages.
DiffDecode(String)
Failed to decode the diff payload.
DiffApply(String)
Failed to apply the diff to local state.
VersionMismatch
Diff was based on a different version than expected.
NotInitialized
Operation requires initialized state but none exists.
Trait Implementations§
Source§impl Error for SyncError
impl Error for SyncError
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()
Source§impl From<MessageError> for SyncError
impl From<MessageError> for SyncError
Source§fn from(source: MessageError) -> Self
fn from(source: MessageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SyncError
impl RefUnwindSafe for SyncError
impl Send for SyncError
impl Sync for SyncError
impl Unpin 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