#[repr(u8)]pub enum RejectCode {
SysFatal = 1,
SysTransient = 2,
DestinationInvalid = 3,
CanisterReject = 4,
CanisterError = 5,
}
Expand description
See the interface spec.
Variants§
SysFatal = 1
Fatal system error, retry unlikely to be useful
SysTransient = 2
Transient system error, retry might be possible.
DestinationInvalid = 3
Invalid destination (e.g. canister/account does not exist)
CanisterReject = 4
Explicit reject by the canister.
CanisterError = 5
Canister error (e.g., trap, no response)
Trait Implementations§
source§impl Clone for RejectCode
impl Clone for RejectCode
source§fn clone(&self) -> RejectCode
fn clone(&self) -> RejectCode
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 RejectCode
impl Debug for RejectCode
source§impl<'de> Deserialize<'de> for RejectCode
impl<'de> Deserialize<'de> for RejectCode
source§fn deserialize<D>(
deserializer: D,
) -> Result<RejectCode, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<RejectCode, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for RejectCode
impl Hash for RejectCode
source§impl Ord for RejectCode
impl Ord for RejectCode
source§fn cmp(&self, other: &RejectCode) -> Ordering
fn cmp(&self, other: &RejectCode) -> 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 RejectCode
impl PartialEq for RejectCode
source§impl PartialOrd for RejectCode
impl PartialOrd for RejectCode
source§impl Serialize for RejectCode
impl Serialize for RejectCode
source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl TryFrom<u64> for RejectCode
impl TryFrom<u64> for RejectCode
source§type Error = InvalidRejectCodeError
type Error = InvalidRejectCodeError
The type returned in the event of a conversion error.
source§fn try_from(value: u64) -> Result<RejectCode, InvalidRejectCodeError>
fn try_from(value: u64) -> Result<RejectCode, InvalidRejectCodeError>
Performs the conversion.
impl Copy for RejectCode
impl Eq for RejectCode
impl StructuralPartialEq for RejectCode
Auto Trait Implementations§
impl Freeze for RejectCode
impl RefUnwindSafe for RejectCode
impl Send for RejectCode
impl Sync for RejectCode
impl Unpin for RejectCode
impl UnwindSafe for RejectCode
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
)