Enum soroban_env_guest::xdr::Error
[−]pub enum Error {
Invalid,
LengthExceedsMax,
LengthMismatch,
NonZeroPadding,
Utf8Error(Utf8Error),
}
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
LengthExceedsMax
LengthMismatch
NonZeroPadding
Utf8Error(Utf8Error)
Trait Implementations
sourceimpl From<Error> for ConversionError
impl From<Error> for ConversionError
sourcefn from(Error) -> ConversionError
fn from(Error) -> ConversionError
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more