#[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 CandidType for RejectionCode
impl CandidType for RejectionCode
sourceimpl Clone for RejectionCode
impl Clone for RejectionCode
sourcefn clone(&self) -> RejectionCode
fn clone(&self) -> RejectionCode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RejectionCode
impl Debug for RejectionCode
sourceimpl<'de> Deserialize<'de> for RejectionCode
impl<'de> Deserialize<'de> for RejectionCode
sourcefn 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
sourceimpl From<i32> for RejectionCode
impl From<i32> for RejectionCode
sourceimpl From<u32> for RejectionCode
impl From<u32> for RejectionCode
impl Copy for RejectionCode
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