pub enum AbortDecodeError {
UnparseableAbort {
detail: String,
},
Unknown {
selector: u64,
payload: Vec<u8>,
},
BadDecode {
selector: u64,
exception: String,
payload: Vec<u8>,
detail: String,
},
}Expand description
Why an abort buffer could not be decoded into an exception value.
The cases mirror the SDK’s generated client error enum: Unknown and
BadDecode retain the parsed selector and payload (the abort prefix was
readable), while UnparseableAbort means even the selector could not be
read and only the raw buffer is meaningful.
Variants§
Trait Implementations§
Source§impl Clone for AbortDecodeError
impl Clone for AbortDecodeError
Source§impl Debug for AbortDecodeError
impl Debug for AbortDecodeError
Source§impl Display for AbortDecodeError
impl Display for AbortDecodeError
Source§impl Error for AbortDecodeError
impl Error for AbortDecodeError
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 PartialEq for AbortDecodeError
impl PartialEq for AbortDecodeError
impl StructuralPartialEq for AbortDecodeError
Auto Trait Implementations§
impl Freeze for AbortDecodeError
impl RefUnwindSafe for AbortDecodeError
impl Send for AbortDecodeError
impl Sync for AbortDecodeError
impl Unpin for AbortDecodeError
impl UnsafeUnpin for AbortDecodeError
impl UnwindSafe for AbortDecodeError
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