pub enum CrdtError {
DecodeUpdate(String),
ApplyUpdate(String),
DecodeStateVector(String),
ValueCodec {
field: String,
source: Error,
},
Store(StoreError),
}Variants§
DecodeUpdate(String)
A remote update could not be decoded (corrupt or wrong wire version).
ApplyUpdate(String)
A decoded update failed to apply.
DecodeStateVector(String)
A peer’s state vector could not be decoded.
ValueCodec
A register value failed to (de)serialize through JSON.
Store(StoreError)
An underlying storage error from the persistence layer (S2): the encrypted
spacedb-store engine, codec, or AEAD boundary.
Trait Implementations§
Source§impl Error for CrdtError
impl Error for CrdtError
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<StoreError> for CrdtError
impl From<StoreError> for CrdtError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for CrdtError
impl !UnwindSafe for CrdtError
impl Freeze for CrdtError
impl Send for CrdtError
impl Sync for CrdtError
impl Unpin for CrdtError
impl UnsafeUnpin for CrdtError
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