Enum ic_agent::agent::RejectCode
source · #[repr(u8)]pub enum RejectCode {
SysFatal,
SysTransient,
DestinationInvalid,
CanisterReject,
CanisterError,
}Expand description
See the interface spec.
Variants§
SysFatal
Fatal system error, retry unlikely to be useful
SysTransient
Transient system error, retry might be possible.
DestinationInvalid
Invalid destination (e.g. canister/account does not exist)
CanisterReject
Explicit reject by the canister.
CanisterError
Canister error (e.g., trap, no response)
Trait Implementations§
source§impl Clone for RejectCode
impl Clone for RejectCode
source§fn clone(&self) -> RejectCode
fn clone(&self) -> RejectCode
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 RejectCode
impl Debug for RejectCode
source§impl<'de> Deserialize<'de> for RejectCode
impl<'de> Deserialize<'de> for RejectCode
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for RejectCode
impl Hash for RejectCode
source§impl Ord for RejectCode
impl Ord for RejectCode
source§fn cmp(&self, other: &RejectCode) -> Ordering
fn cmp(&self, other: &RejectCode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<RejectCode> for RejectCode
impl PartialEq<RejectCode> for RejectCode
source§fn eq(&self, other: &RejectCode) -> bool
fn eq(&self, other: &RejectCode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<RejectCode> for RejectCode
impl PartialOrd<RejectCode> for RejectCode
source§fn partial_cmp(&self, other: &RejectCode) -> Option<Ordering>
fn partial_cmp(&self, other: &RejectCode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for RejectCode
impl Serialize for RejectCode
source§impl TryFrom<u64> for RejectCode
impl TryFrom<u64> for RejectCode
§type Error = AgentError
type Error = AgentError
The type returned in the event of a conversion error.
impl Copy for RejectCode
impl Eq for RejectCode
impl StructuralEq for RejectCode
impl StructuralPartialEq for RejectCode
Auto Trait Implementations§
impl RefUnwindSafe for RejectCode
impl Send for RejectCode
impl Sync for RejectCode
impl Unpin for RejectCode
impl UnwindSafe for RejectCode
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.