Enum soroban_env_guest::xdr::Error
pub enum Error {
Invalid,
Unsupported,
LengthExceedsMax,
LengthMismatch,
NonZeroPadding,
Utf8Error(Utf8Error),
InvalidHex,
Io(Error),
DepthLimitExceeded,
LengthLimitExceeded,
}
Expand description
Error contains all errors returned by functions in this crate. It can be
compared via PartialEq
, however any contained IO errors will only be
compared on their ErrorKind
.
Variants§
Invalid
Unsupported
LengthExceedsMax
LengthMismatch
NonZeroPadding
Utf8Error(Utf8Error)
InvalidHex
Io(Error)
DepthLimitExceeded
LengthLimitExceeded
Trait Implementations§
§impl Error for Error
impl Error for Error
§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 ConversionError
impl From<Error> for ConversionError
source§fn from(_: Error) -> ConversionError
fn from(_: Error) -> ConversionError
Converts to this type from the input type.
§impl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
§fn from(e: FromUtf8Error) -> Error
fn from(e: FromUtf8Error) -> Error
Converts to this type from the input type.
§impl From<TryFromSliceError> for Error
impl From<TryFromSliceError> for Error
§fn from(_: TryFromSliceError) -> Error
fn from(_: TryFromSliceError) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
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