#[non_exhaustive]pub enum XRPLBinaryCodecException {
Show 19 variants
UnexpectedParserSkipOverflow {
max: usize,
found: usize,
},
UnexpectedLengthPrefixRange {
min: usize,
max: usize,
},
UnexpectedTypeCodeRange {
min: usize,
max: usize,
},
UnexpectedFieldCodeRange {
min: usize,
max: usize,
},
UnexpectedFieldIdByteRange {
min: usize,
max: usize,
},
UnknownFieldName,
InvalidReadFromBytesValue,
InvalidVariableLengthTooLarge {
max: usize,
},
InvalidHashLength {
expected: usize,
found: usize,
},
InvalidPathSetFromValue,
TryFromSliceError,
FieldHasNoAssiciatedTag,
XAddressTagMismatch,
FieldIsNotAccountOrDestination,
TryFromIntError(TryFromIntError),
FromUtf8Error(FromUtf8Error),
ParseIntError(ParseIntError),
XRPLTypeError(XRPLTypeException),
XRPRangeError(XRPRangeException),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnexpectedParserSkipOverflow
UnexpectedLengthPrefixRange
UnexpectedTypeCodeRange
UnexpectedFieldCodeRange
UnexpectedFieldIdByteRange
UnknownFieldName
InvalidReadFromBytesValue
InvalidVariableLengthTooLarge
InvalidHashLength
InvalidPathSetFromValue
TryFromSliceError
FieldHasNoAssiciatedTag
XAddressTagMismatch
FieldIsNotAccountOrDestination
TryFromIntError(TryFromIntError)
FromUtf8Error(FromUtf8Error)
ParseIntError(ParseIntError)
XRPLTypeError(XRPLTypeException)
XRPRangeError(XRPRangeException)
Trait Implementations§
Source§impl Debug for XRPLBinaryCodecException
impl Debug for XRPLBinaryCodecException
Source§impl Display for XRPLBinaryCodecException
impl Display for XRPLBinaryCodecException
Source§impl Error for XRPLBinaryCodecException
impl Error for XRPLBinaryCodecException
1.30.0 · 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<FromUtf8Error> for XRPLBinaryCodecException
impl From<FromUtf8Error> for XRPLBinaryCodecException
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for XRPLBinaryCodecException
impl From<ParseIntError> for XRPLBinaryCodecException
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromIntError> for XRPLBinaryCodecException
impl From<TryFromIntError> for XRPLBinaryCodecException
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromSliceError> for XRPLBinaryCodecException
impl From<TryFromSliceError> for XRPLBinaryCodecException
Source§fn from(_: TryFromSliceError) -> Self
fn from(_: TryFromSliceError) -> Self
Converts to this type from the input type.
Source§impl From<XRPLBinaryCodecException> for XRPLCoreException
impl From<XRPLBinaryCodecException> for XRPLCoreException
Source§fn from(source: XRPLBinaryCodecException) -> Self
fn from(source: XRPLBinaryCodecException) -> Self
Converts to this type from the input type.
Source§impl From<XRPLTypeException> for XRPLBinaryCodecException
impl From<XRPLTypeException> for XRPLBinaryCodecException
Source§fn from(source: XRPLTypeException) -> Self
fn from(source: XRPLTypeException) -> Self
Converts to this type from the input type.
Source§impl From<XRPRangeException> for XRPLBinaryCodecException
impl From<XRPRangeException> for XRPLBinaryCodecException
Source§fn from(source: XRPRangeException) -> Self
fn from(source: XRPRangeException) -> Self
Converts to this type from the input type.
Source§impl PartialEq for XRPLBinaryCodecException
impl PartialEq for XRPLBinaryCodecException
impl StructuralPartialEq for XRPLBinaryCodecException
Auto Trait Implementations§
impl Freeze for XRPLBinaryCodecException
impl RefUnwindSafe for XRPLBinaryCodecException
impl Send for XRPLBinaryCodecException
impl Sync for XRPLBinaryCodecException
impl Unpin for XRPLBinaryCodecException
impl UnwindSafe for XRPLBinaryCodecException
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