Enum ic_agent::agent::RejectCode
source · #[repr(u8)]pub enum RejectCode {
SysFatal = 1,
SysTransient = 2,
DestinationInvalid = 3,
CanisterReject = 4,
CanisterError = 5,
}Expand description
See the interface spec.
Variants§
SysFatal = 1
Fatal system error, retry unlikely to be useful
SysTransient = 2
Transient system error, retry might be possible.
DestinationInvalid = 3
Invalid destination (e.g. canister/account does not exist)
CanisterReject = 4
Explicit reject by the canister.
CanisterError = 5
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<RejectCode, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<RejectCode, <D as Deserializer<'de>>::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 for RejectCode
impl PartialEq 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 for RejectCode
impl PartialOrd 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§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl TryFrom<u64> for RejectCode
impl TryFrom<u64> for RejectCode
§type Error = InvalidRejectCodeError
type Error = InvalidRejectCodeError
The type returned in the event of a conversion error.
source§fn try_from(value: u64) -> Result<RejectCode, InvalidRejectCodeError>
fn try_from(value: u64) -> Result<RejectCode, InvalidRejectCodeError>
Performs the conversion.
impl Copy for RejectCode
impl Eq 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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.