#[repr(u8)]pub enum ErrorReplyReason {
Execution(SimpleExecutionError),
UnavailableActor(SimpleUnavailableActorError),
RemovedFromWaitlist = 3,
Unsupported = 255,
}Expand description
Reason of error reply creation.
Variants§
Execution(SimpleExecutionError)
Error reply was created due to underlying execution error.
Destination actor is unavailable, so it can’t process the message.
RemovedFromWaitlist = 3
Message has died in Waitlist as out of rent one.
Unsupported = 255
Unsupported reason of error reply. Variant exists for backward compatibility.
Implementations§
Trait Implementations§
Source§impl Clone for ErrorReplyReason
impl Clone for ErrorReplyReason
Source§fn clone(&self) -> ErrorReplyReason
fn clone(&self) -> ErrorReplyReason
Returns a duplicate 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 ErrorReplyReason
impl Debug for ErrorReplyReason
Source§impl Decode for ErrorReplyReason
impl Decode for ErrorReplyReason
Source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<ErrorReplyReason, Error>where
__CodecInputEdqy: Input,
fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<ErrorReplyReason, Error>where
__CodecInputEdqy: Input,
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<'de> Deserialize<'de> for ErrorReplyReason
impl<'de> Deserialize<'de> for ErrorReplyReason
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ErrorReplyReason, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ErrorReplyReason, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ErrorReplyReason
impl Display for ErrorReplyReason
Source§impl Encode for ErrorReplyReason
impl Encode for ErrorReplyReason
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 encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> 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 EncodeAsType for ErrorReplyReason
impl EncodeAsType for ErrorReplyReason
Source§fn encode_as_type_to<ScaleEncodeResolver>(
&self,
__encode_as_type_type_id: <ScaleEncodeResolver as TypeResolver>::TypeId,
__encode_as_type_types: &ScaleEncodeResolver,
__encode_as_type_out: &mut Vec<u8>,
) -> Result<(), Error>where
ScaleEncodeResolver: TypeResolver,
fn encode_as_type_to<ScaleEncodeResolver>(
&self,
__encode_as_type_type_id: <ScaleEncodeResolver as TypeResolver>::TypeId,
__encode_as_type_types: &ScaleEncodeResolver,
__encode_as_type_out: &mut Vec<u8>,
) -> Result<(), Error>where
ScaleEncodeResolver: TypeResolver,
Given some
type_id, types, a context and some output target for the SCALE encoded bytes,
attempt to SCALE encode the current value into the type given by type_id.Source§fn encode_as_type<R>(
&self,
type_id: <R as TypeResolver>::TypeId,
types: &R,
) -> Result<Vec<u8>, Error>where
R: TypeResolver,
fn encode_as_type<R>(
&self,
type_id: <R as TypeResolver>::TypeId,
types: &R,
) -> Result<Vec<u8>, Error>where
R: TypeResolver,
This is a helper function which internally calls
EncodeAsType::encode_as_type_to. Prefer to
implement that instead.Source§impl Error for ErrorReplyReason
impl Error for ErrorReplyReason
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ErrorReplyReason> for ReplyCode
impl From<ErrorReplyReason> for ReplyCode
Source§fn from(source: ErrorReplyReason) -> ReplyCode
fn from(source: ErrorReplyReason) -> ReplyCode
Converts to this type from the input type.
Source§impl From<SimpleExecutionError> for ErrorReplyReason
impl From<SimpleExecutionError> for ErrorReplyReason
Source§fn from(source: SimpleExecutionError) -> ErrorReplyReason
fn from(source: SimpleExecutionError) -> ErrorReplyReason
Converts to this type from the input type.
Source§fn from(source: SimpleUnavailableActorError) -> ErrorReplyReason
fn from(source: SimpleUnavailableActorError) -> ErrorReplyReason
Converts to this type from the input type.
Source§impl Hash for ErrorReplyReason
impl Hash for ErrorReplyReason
Source§impl IntoVisitor for ErrorReplyReason
impl IntoVisitor for ErrorReplyReason
Source§type AnyVisitor<ScaleDecodeTypeResolver: TypeResolver> = Visitor<ScaleDecodeTypeResolver>
type AnyVisitor<ScaleDecodeTypeResolver: TypeResolver> = Visitor<ScaleDecodeTypeResolver>
The visitor type used to decode SCALE encoded bytes to
Self.Source§fn into_visitor<ScaleDecodeTypeResolver>() -> <ErrorReplyReason as IntoVisitor>::AnyVisitor<ScaleDecodeTypeResolver>where
ScaleDecodeTypeResolver: TypeResolver,
fn into_visitor<ScaleDecodeTypeResolver>() -> <ErrorReplyReason as IntoVisitor>::AnyVisitor<ScaleDecodeTypeResolver>where
ScaleDecodeTypeResolver: TypeResolver,
A means of obtaining this visitor.
Source§impl PartialEq for ErrorReplyReason
impl PartialEq for ErrorReplyReason
Source§impl Sequence for ErrorReplyReason
impl Sequence for ErrorReplyReason
Source§const CARDINALITY: usize = 15usize
const CARDINALITY: usize = 15usize
Number of values of type
Self. Read moreSource§fn next(&self) -> Option<ErrorReplyReason>
fn next(&self) -> Option<ErrorReplyReason>
Source§fn previous(&self) -> Option<ErrorReplyReason>
fn previous(&self) -> Option<ErrorReplyReason>
Source§impl Serialize for ErrorReplyReason
impl Serialize for ErrorReplyReason
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 TypeInfo for ErrorReplyReason
impl TypeInfo for ErrorReplyReason
impl Copy for ErrorReplyReason
impl EncodeLike for ErrorReplyReason
impl Eq for ErrorReplyReason
impl StructuralPartialEq for ErrorReplyReason
Auto Trait Implementations§
impl Freeze for ErrorReplyReason
impl RefUnwindSafe for ErrorReplyReason
impl Send for ErrorReplyReason
impl Sync for ErrorReplyReason
impl Unpin for ErrorReplyReason
impl UnwindSafe for ErrorReplyReason
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§impl<T> DecodeAsType for Twhere
T: IntoVisitor,
impl<T> DecodeAsType for Twhere
T: IntoVisitor,
fn decode_as_type_maybe_compact<R>(
input: &mut &[u8],
type_id: <R as TypeResolver>::TypeId,
types: &R,
is_compact: bool,
) -> Result<T, Error>where
R: TypeResolver,
Source§fn decode_as_type<R>(
input: &mut &[u8],
type_id: <R as TypeResolver>::TypeId,
types: &R,
) -> Result<Self, Error>where
R: TypeResolver,
fn decode_as_type<R>(
input: &mut &[u8],
type_id: <R as TypeResolver>::TypeId,
types: &R,
) -> Result<Self, Error>where
R: TypeResolver,
Given some input bytes, a
type_id, and type registry, attempt to decode said bytes into
Self. Implementations should modify the &mut reference to the bytes such that any bytes
not used in the course of decoding are still pointed to after decoding is complete.Source§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere
T: Decode,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.