#[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
)