Enum ic_kit::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
NoError
SysFatal
SysTransient
DestinationInvalid
CanisterReject
CanisterError
Unknown
Trait Implementations
sourceimpl Debug for RejectionCode
impl Debug for RejectionCode
sourceimpl From<i32> for RejectionCode
impl From<i32> for RejectionCode
sourcefn from(code: i32) -> RejectionCode
fn from(code: i32) -> RejectionCode
Performs the conversion.
sourceimpl From<u32> for RejectionCode
impl From<u32> for RejectionCode
sourcefn from(code: u32) -> RejectionCode
fn from(code: u32) -> RejectionCode
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for RejectionCode
impl Send for RejectionCode
impl Sync for RejectionCode
impl Unpin for RejectionCode
impl UnwindSafe for RejectionCode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more