pub enum DsonError {
ParseError(String),
IoError(Error),
InvalidField(String),
SchemaError(String),
MergeConflict(String),
InvalidOperation(String),
SerdeError(String),
SerializationError(String),
SimdJsonlError(String),
SkipTapeError(String),
MemoryError(String),
ValidationError(String),
}Expand description
Errors that can occur during DSON processing
Variants§
ParseError(String)
JSON parsing error
IoError(Error)
I/O error
InvalidField(String)
Invalid field access
SchemaError(String)
Schema validation error
MergeConflict(String)
CRDT merge conflict
InvalidOperation(String)
Invalid operation
SerdeError(String)
Serde serialization/deserialization error
SerializationError(String)
JSON serialization error
SimdJsonlError(String)
SIMD-JSONL processing error
SkipTapeError(String)
Skip tape processing error
MemoryError(String)
Memory allocation error
ValidationError(String)
Validation error
Trait Implementations§
Source§impl Error for DsonError
impl Error for DsonError
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<DsonError> for SkipTapeError
impl From<DsonError> for SkipTapeError
Source§fn from(error: DsonError) -> SkipTapeError
fn from(error: DsonError) -> SkipTapeError
Converts to this type from the input type.
Source§impl From<SkipTapeError> for DsonError
impl From<SkipTapeError> for DsonError
Source§fn from(error: SkipTapeError) -> DsonError
fn from(error: SkipTapeError) -> DsonError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DsonError
impl !RefUnwindSafe for DsonError
impl Send for DsonError
impl Sync for DsonError
impl Unpin for DsonError
impl !UnwindSafe for DsonError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more