pub enum KeriTranslationError {
EncodingFailed {
primitive_kind: &'static str,
detail: String,
},
DecodingFailed(String),
SerializationFailed(Error),
SaidMismatch {
computed: String,
found: String,
},
VersionStringError(String),
MissingField {
field: &'static str,
},
SignatureParseError(String),
RoundTripFailed {
sequence: u128,
detail: String,
},
}Expand description
Errors during translation between Auths events and CESR streams.
Variants§
EncodingFailed
A cryptographic primitive could not be CESR-encoded.
Fields
DecodingFailed(String)
A CESR-encoded primitive could not be decoded.
SerializationFailed(Error)
JSON serialization or canonicalization failed.
SaidMismatch
SAID computation produced a value inconsistent with the event.
Fields
VersionStringError(String)
The version string could not be computed.
MissingField
An event is missing required fields for CESR export.
SignatureParseError(String)
A signature could not be parsed from the internal format.
RoundTripFailed
Round-trip validation failed.
Trait Implementations§
Source§impl Debug for KeriTranslationError
impl Debug for KeriTranslationError
Source§impl Display for KeriTranslationError
impl Display for KeriTranslationError
Source§impl Error for KeriTranslationError
impl Error for KeriTranslationError
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<Error> for KeriTranslationError
impl From<Error> for KeriTranslationError
Source§impl From<KeriTranslationError> for AcdcError
impl From<KeriTranslationError> for AcdcError
Source§fn from(source: KeriTranslationError) -> Self
fn from(source: KeriTranslationError) -> Self
Converts to this type from the input type.
Source§impl From<KeriTranslationError> for TelError
impl From<KeriTranslationError> for TelError
Source§fn from(e: KeriTranslationError) -> Self
fn from(e: KeriTranslationError) -> Self
Converts to this type from the input type.
Source§impl From<KeriTranslationError> for IpexError
impl From<KeriTranslationError> for IpexError
Source§fn from(source: KeriTranslationError) -> Self
fn from(source: KeriTranslationError) -> Self
Converts to this type from the input type.
Source§impl From<KeriTranslationError> for OobiError
impl From<KeriTranslationError> for OobiError
Source§fn from(source: KeriTranslationError) -> Self
fn from(source: KeriTranslationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for KeriTranslationError
impl !UnwindSafe for KeriTranslationError
impl Freeze for KeriTranslationError
impl Send for KeriTranslationError
impl Sync for KeriTranslationError
impl Unpin for KeriTranslationError
impl UnsafeUnpin for KeriTranslationError
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