Enum ic_cdk::api::call::RejectionCode
source · #[repr(i32)]
pub enum RejectionCode {
NoError,
SysFatal,
SysTransient,
DestinationInvalid,
CanisterReject,
CanisterError,
Unknown,
}
Expand description
Rejection code from calling another canister.
These can be obtained either using reject_code()
or reject_result()
.
Variants§
Trait Implementations§
source§impl CandidType for RejectionCode
impl CandidType for RejectionCode
source§impl Clone for RejectionCode
impl Clone for RejectionCode
source§fn clone(&self) -> RejectionCode
fn clone(&self) -> RejectionCode
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 RejectionCode
impl Debug for RejectionCode
source§impl<'de> Deserialize<'de> for RejectionCode
impl<'de> Deserialize<'de> for RejectionCode
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 From<i32> for RejectionCode
impl From<i32> for RejectionCode
source§impl From<u32> for RejectionCode
impl From<u32> for RejectionCode
source§impl Hash for RejectionCode
impl Hash for RejectionCode
source§impl Ord for RejectionCode
impl Ord for RejectionCode
source§fn cmp(&self, other: &RejectionCode) -> Ordering
fn cmp(&self, other: &RejectionCode) -> 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<RejectionCode> for RejectionCode
impl PartialEq<RejectionCode> for RejectionCode
source§fn eq(&self, other: &RejectionCode) -> bool
fn eq(&self, other: &RejectionCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<RejectionCode> for RejectionCode
impl PartialOrd<RejectionCode> for RejectionCode
source§fn partial_cmp(&self, other: &RejectionCode) -> Option<Ordering>
fn partial_cmp(&self, other: &RejectionCode) -> 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 more