pub enum Error {
Show 24 variants
InvalidSeedLength {
actual: usize,
},
DuplicateKey(String),
MissingKey(String),
InvalidKey(String),
ExtraKeys(usize, usize),
InvalidKeyLength {
expected: usize,
actual: usize,
},
InvalidNextKeyLength {
expected: usize,
actual: usize,
},
InvalidChainIdLength {
expected: usize,
actual: usize,
},
InvalidMessageLength {
expected: usize,
actual: usize,
},
InvalidInfoCbor,
DateOutOfRange {
details: String,
},
InvalidDate {
details: String,
},
MissingUrlParameter {
parameter: String,
},
YearOutOfRange {
year: i32,
},
InvalidMonthOrDay {
year: i32,
month: u32,
day: u32,
},
ResolutionError {
details: String,
},
Bytewords(Error),
Cbor(Error),
Url(ParseError),
Base64(DecodeError),
Json(Error),
TryFromInt(TryFromIntError),
Envelope(Error),
Validation(ValidationIssue),
}Variants§
InvalidSeedLength
Invalid Seed length
DuplicateKey(String)
Duplicate key
MissingKey(String)
Missing key
InvalidKey(String)
Invalid key
ExtraKeys(usize, usize)
Extra keys
InvalidKeyLength
Invalid key length for the given resolution
InvalidNextKeyLength
Invalid next key length for the given resolution
InvalidChainIdLength
Invalid chain ID length for the given resolution
InvalidMessageLength
Invalid message length for the given resolution
InvalidInfoCbor
Invalid CBOR data in info field
DateOutOfRange
Date out of range for serialization
InvalidDate
Invalid date components
MissingUrlParameter
Missing required URL parameter
YearOutOfRange
Year out of range for 2-byte serialization
InvalidMonthOrDay
Invalid month or day
ResolutionError
Resolution serialization error
Bytewords(Error)
Bytewords encoding/decoding error
Cbor(Error)
CBOR encoding/decoding error
Url(ParseError)
URL parsing error
Base64(DecodeError)
Base64 decoding error
Json(Error)
JSON serialization error
TryFromInt(TryFromIntError)
Integer conversion error
Envelope(Error)
Validation(ValidationIssue)
Validation error
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<DecodeError> for Error
impl From<DecodeError> for Error
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for Error
impl From<ParseError> for Error
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromIntError> for Error
impl From<TryFromIntError> for Error
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Source§impl From<ValidationIssue> for Error
impl From<ValidationIssue> for Error
Source§fn from(source: ValidationIssue) -> Self
fn from(source: ValidationIssue) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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