pub enum ChecksumError {
CanonicalJsonFailed(Error),
}Expand description
Errors surfaced by checksum compute / verify.
Variants§
CanonicalJsonFailed(Error)
serde_json rejected the frame body — typically a non-serializable
payload (e.g. a Map with non-string keys, an f64::NAN).
Trait Implementations§
Source§impl Debug for ChecksumError
impl Debug for ChecksumError
Source§impl Display for ChecksumError
impl Display for ChecksumError
Source§impl Error for ChecksumError
impl Error for ChecksumError
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<ChecksumError> for StorageError
Convenience: wal_frame_checksum / verify_wal_frame_checksum failures
bubble through ? at the tier-flush boundary without explicit mapping.
ChecksumError::CanonicalJsonFailed was a serde_json::Error at root,
which is a codec-encode failure — funnel through the Codec variant.
impl From<ChecksumError> for StorageError
Convenience: wal_frame_checksum / verify_wal_frame_checksum failures
bubble through ? at the tier-flush boundary without explicit mapping.
ChecksumError::CanonicalJsonFailed was a serde_json::Error at root,
which is a codec-encode failure — funnel through the Codec variant.
Source§fn from(e: ChecksumError) -> Self
fn from(e: ChecksumError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ChecksumError
impl !RefUnwindSafe for ChecksumError
impl Send for ChecksumError
impl Sync for ChecksumError
impl Unpin for ChecksumError
impl UnsafeUnpin for ChecksumError
impl !UnwindSafe for ChecksumError
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