pub enum VersionedRecordError {
Json(Error),
BareV0Unsupported {
schema: &'static str,
},
WrongSchema {
expected: &'static str,
actual: String,
},
UnsupportedVersion {
schema: &'static str,
supported: u32,
actual: u32,
},
}Expand description
Durable-record envelope failure.
Variants§
Json(Error)
JSON parsing or typed payload decoding failed.
BareV0Unsupported
Bare legacy JSON was supplied to a record that did not opt in.
WrongSchema
Envelope names another schema.
UnsupportedVersion
Envelope version is unknown or invalid.
Trait Implementations§
Source§impl Debug for VersionedRecordError
impl Debug for VersionedRecordError
Source§impl Display for VersionedRecordError
impl Display for VersionedRecordError
Source§impl Error for VersionedRecordError
impl Error for VersionedRecordError
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 !RefUnwindSafe for VersionedRecordError
impl !UnwindSafe for VersionedRecordError
impl Freeze for VersionedRecordError
impl Send for VersionedRecordError
impl Sync for VersionedRecordError
impl Unpin for VersionedRecordError
impl UnsafeUnpin for VersionedRecordError
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