pub enum CanonError {
Serialize(Error),
InvalidPreviousHash(String),
}Expand description
Failure to canonicalize or hash an event. Distinct from invalid events, which are rejected earlier by validation.
Variants§
Serialize(Error)
The event could not be serialized to canonical bytes.
InvalidPreviousHash(String)
A supplied previous-event hash was not a valid 64-char hex digest.
Trait Implementations§
Source§impl Debug for CanonError
impl Debug for CanonError
Source§impl Display for CanonError
impl Display for CanonError
Source§impl Error for CanonError
impl Error for CanonError
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 CanonError
impl !UnwindSafe for CanonError
impl Freeze for CanonError
impl Send for CanonError
impl Sync for CanonError
impl Unpin for CanonError
impl UnsafeUnpin for CanonError
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