Enum ic_cdk::api::call::RejectionCode
source · #[repr(i32)]pub enum RejectionCode {
NoError = 0,
SysFatal = 1,
SysTransient = 2,
DestinationInvalid = 3,
CanisterReject = 4,
CanisterError = 5,
Unknown = 6,
}
Expand description
Rejection code from calling another canister.
These can be obtained either using reject_code()
or reject_result()
.
Variants§
NoError = 0
SysFatal = 1
SysTransient = 2
DestinationInvalid = 3
CanisterReject = 4
CanisterError = 5
Unknown = 6
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 for RejectionCode
impl PartialEq for RejectionCode
source§impl PartialOrd for RejectionCode
impl PartialOrd for RejectionCode
impl Copy for RejectionCode
impl Eq for RejectionCode
impl StructuralPartialEq for RejectionCode
Auto Trait Implementations§
impl Freeze for RejectionCode
impl RefUnwindSafe for RejectionCode
impl Send for RejectionCode
impl Sync for RejectionCode
impl Unpin for RejectionCode
impl UnwindSafe for RejectionCode
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)