pub enum ActorTerminationReason {
Exit(ProgramId),
Leave,
Success,
Wait(Option<u32>, MessageWaitedType),
GasAllowanceExceeded,
Trap(TrapExplanation),
}
Variants§
Exit(ProgramId)
Leave
Success
Wait(Option<u32>, MessageWaitedType)
GasAllowanceExceeded
Trap(TrapExplanation)
Trait Implementations§
source§impl Clone for ActorTerminationReason
impl Clone for ActorTerminationReason
source§fn clone(&self) -> ActorTerminationReason
fn clone(&self) -> ActorTerminationReason
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 ActorTerminationReason
impl Debug for ActorTerminationReason
source§impl Decode for ActorTerminationReason
impl Decode for ActorTerminationReason
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>
Attempt to deserialise the value from input.
source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>( input: &mut I, dst: &mut MaybeUninit<Self> ) -> Result<DecodeFinished, Error>where I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
source§impl Encode for ActorTerminationReason
impl Encode for ActorTerminationReason
source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )
Convert self to a slice and append it to the destination.
source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
source§fn using_encoded<R, F>(&self, f: F) -> Rwhere
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.
source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
source§impl From<ActorTerminationReason> for TerminationReason
impl From<ActorTerminationReason> for TerminationReason
source§fn from(original: ActorTerminationReason) -> TerminationReason
fn from(original: ActorTerminationReason) -> TerminationReason
Converts to this type from the input type.
source§impl From<TrapExplanation> for ActorTerminationReason
impl From<TrapExplanation> for ActorTerminationReason
source§fn from(original: TrapExplanation) -> ActorTerminationReason
fn from(original: TrapExplanation) -> ActorTerminationReason
Converts to this type from the input type.
source§impl Ord for ActorTerminationReason
impl Ord for ActorTerminationReason
source§fn cmp(&self, other: &ActorTerminationReason) -> Ordering
fn cmp(&self, other: &ActorTerminationReason) -> 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<ActorTerminationReason> for ActorTerminationReason
impl PartialEq<ActorTerminationReason> for ActorTerminationReason
source§fn eq(&self, other: &ActorTerminationReason) -> bool
fn eq(&self, other: &ActorTerminationReason) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ActorTerminationReason> for ActorTerminationReason
impl PartialOrd<ActorTerminationReason> for ActorTerminationReason
source§fn partial_cmp(&self, other: &ActorTerminationReason) -> Option<Ordering>
fn partial_cmp(&self, other: &ActorTerminationReason) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl EncodeLike<ActorTerminationReason> for ActorTerminationReason
impl Eq for ActorTerminationReason
impl StructuralEq for ActorTerminationReason
impl StructuralPartialEq for ActorTerminationReason
Auto Trait Implementations§
impl RefUnwindSafe for ActorTerminationReason
impl Send for ActorTerminationReason
impl Sync for ActorTerminationReason
impl Unpin for ActorTerminationReason
impl UnwindSafe for ActorTerminationReason
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> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere T: Decode,
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more