Enum ErrorReplyReason
#[repr(u8)]pub enum ErrorReplyReason {
- Execution(SimpleExecutionError),
- FailedToCreateProgram(SimpleProgramCreationError),
+ErrorReplyReason in gear_core::message - Rust #[repr(u8)]pub enum ErrorReplyReason {
+ Execution(SimpleExecutionError),
+ FailedToCreateProgram(SimpleProgramCreationError),
InactiveActor = 2,
RemovedFromWaitlist = 3,
ReinstrumentationFailure = 4,
@@ -8,14 +8,14 @@
}
Expand description
Reason of error reply creation.
NOTE: Adding new variants to this enum you must also update ErrorReplyReason::to_bytes
and
ErrorReplyReason::from_bytes
methods.
-Variants§
§Execution(SimpleExecutionError)
Error reply was created due to underlying execution error.
-§FailedToCreateProgram(SimpleProgramCreationError)
Error reply was created due to errors in program creation.
+Variants§
§Execution(SimpleExecutionError)
Error reply was created due to underlying execution error.
+§FailedToCreateProgram(SimpleProgramCreationError)
Error reply was created due to errors in program creation.
§InactiveActor = 2
Destination actor is inactive, so it can’t process the message.
§RemovedFromWaitlist = 3
Message has died in Waitlist as out of rent one.
§ReinstrumentationFailure = 4
Program re-instrumentation failed.
§Unsupported = 255
Unsupported reason of error reply.
Variant exists for backward compatibility.
-Trait Implementations§
§impl Clone for ErrorReplyReason
§fn clone(&self) -> ErrorReplyReason
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for ErrorReplyReason
§impl Decode for ErrorReplyReason
Trait Implementations§
Source§impl Clone for ErrorReplyReason
Source§fn clone(&self) -> ErrorReplyReason
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreSource§impl Debug for ErrorReplyReason
Source§impl Decode for ErrorReplyReason
Source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<ErrorReplyReason, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -23,32 +23,32 @@
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§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl Default for ErrorReplyReason
§fn default() -> ErrorReplyReason
Returns the “default value” for a type. Read more§impl<'de> Deserialize<'de> for ErrorReplyReason
§fn deserialize<__D>(
+ I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moreSource§impl Default for ErrorReplyReason
Source§fn default() -> ErrorReplyReason
Returns the “default value” for a type. Read moreSource§impl<'de> Deserialize<'de> for ErrorReplyReason
Source§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§impl Display for ErrorReplyReason
§fn fmt(
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl Display for ErrorReplyReason
§impl Encode for ErrorReplyReason
Source§impl Encode for ErrorReplyReason
Source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moreSource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
__CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl From<ErrorReplyReason> for ReplyCode
§fn from(original: ErrorReplyReason) -> ReplyCode
Converts to this type from the input type.§impl From<SimpleExecutionError> for ErrorReplyReason
§fn from(original: SimpleExecutionError) -> ErrorReplyReason
Converts to this type from the input type.§impl From<SimpleProgramCreationError> for ErrorReplyReason
§fn from(original: SimpleProgramCreationError) -> ErrorReplyReason
Converts to this type from the input type.§impl Hash for ErrorReplyReason
Source§impl From<ErrorReplyReason> for ReplyCode
Source§fn from(original: ErrorReplyReason) -> ReplyCode
Converts to this type from the input type.Source§impl From<SimpleExecutionError> for ErrorReplyReason
Source§fn from(original: SimpleExecutionError) -> ErrorReplyReason
Converts to this type from the input type.Source§impl From<SimpleProgramCreationError> for ErrorReplyReason
Source§fn from(original: SimpleProgramCreationError) -> ErrorReplyReason
Converts to this type from the input type.Source§impl Hash for ErrorReplyReason
§impl Ord for ErrorReplyReason
Source§impl Ord for ErrorReplyReason
Source§fn cmp(&self, other: &ErrorReplyReason) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more§impl PartialEq for ErrorReplyReason
§impl PartialOrd for ErrorReplyReason
§fn partial_cmp(&self, other: &ErrorReplyReason) -> Option<Ordering>
Source§impl PartialEq for ErrorReplyReason
Source§impl PartialOrd for ErrorReplyReason
§impl Sequence for ErrorReplyReason
§const CARDINALITY: usize = 13usize
Number of values of type Self
. Read more§fn next(&self) -> Option<ErrorReplyReason>
§fn previous(&self) -> Option<ErrorReplyReason>
§fn first() -> Option<ErrorReplyReason>
Returns the first value of type Self
. Read more§fn last() -> Option<ErrorReplyReason>
Returns the last value of type Self
. Read moreSource§impl Sequence for ErrorReplyReason
Source§const CARDINALITY: usize = 13usize
Number of values of type Self
. Read moreSource§fn next(&self) -> Option<ErrorReplyReason>
Source§fn previous(&self) -> Option<ErrorReplyReason>
Source§impl Serialize for ErrorReplyReason
Source§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§impl TypeInfo for ErrorReplyReason
§impl Copy for ErrorReplyReason
§impl EncodeLike for ErrorReplyReason
§impl Eq for ErrorReplyReason
§impl StructuralPartialEq for ErrorReplyReason