pub struct CandidDecodeFailed { /* private fields */ }Expand description
Represents an error that occurs when the response from an inter-canister call cannot be decoded as Candid.
This error type provides details about the Candid decoding failure, including the type that was being decoded and the specific Candid error that occurred.
This is the only possible error that can occur in Response::candid and Response::candid_tuple.
It is wrapped by the top-level Error::CandidDecodeFailed variant.
Trait Implementations§
Source§impl CallErrorExt for CandidDecodeFailed
impl CallErrorExt for CandidDecodeFailed
Source§fn is_clean_reject(&self) -> bool
fn is_clean_reject(&self) -> bool
Checks if the error is a clean reject.
A clean reject means that there must be no state changes on the callee side.
Source§fn is_immediately_retryable(&self) -> bool
fn is_immediately_retryable(&self) -> bool
Determines if the failed call can be retried immediately within the update method
that’s handling the error, as opposed to relying on a background timer or heartbeat. Read more
Source§impl Clone for CandidDecodeFailed
impl Clone for CandidDecodeFailed
Source§fn clone(&self) -> CandidDecodeFailed
fn clone(&self) -> CandidDecodeFailed
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CandidDecodeFailed
impl Debug for CandidDecodeFailed
Source§impl Display for CandidDecodeFailed
impl Display for CandidDecodeFailed
Source§impl Error for CandidDecodeFailed
impl Error for CandidDecodeFailed
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<CandidDecodeFailed> for Error
impl From<CandidDecodeFailed> for Error
Source§fn from(source: CandidDecodeFailed) -> Self
fn from(source: CandidDecodeFailed) -> Self
Converts to this type from the input type.
Source§impl From<CandidDecodeFailed> for SignCallError
impl From<CandidDecodeFailed> for SignCallError
Source§fn from(source: CandidDecodeFailed) -> Self
fn from(source: CandidDecodeFailed) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CandidDecodeFailed
impl RefUnwindSafe for CandidDecodeFailed
impl Send for CandidDecodeFailed
impl Sync for CandidDecodeFailed
impl Unpin for CandidDecodeFailed
impl UnwindSafe for CandidDecodeFailed
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