#[repr(u8)]pub enum ErrorReplyReason {
Execution(SimpleExecutionError),
FailedToCreateProgram(SimpleProgramCreationError),
InactiveActor = 2,
RemovedFromWaitlist = 3,
ReinstrumentationFailure = 4,
Unsupported = 255,
}
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.
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§
Source§impl Clone for ErrorReplyReason
impl Clone for ErrorReplyReason
Source§fn clone(&self) -> ErrorReplyReason
fn clone(&self) -> ErrorReplyReason
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 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 Default for ErrorReplyReason
impl Default for ErrorReplyReason
Source§fn default() -> ErrorReplyReason
fn default() -> ErrorReplyReason
Returns the “default value” for a type. 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 From<ErrorReplyReason> for ReplyCode
impl From<ErrorReplyReason> for ReplyCode
Source§fn from(original: ErrorReplyReason) -> ReplyCode
fn from(original: ErrorReplyReason) -> ReplyCode
Converts to this type from the input type.
Source§impl From<SimpleExecutionError> for ErrorReplyReason
impl From<SimpleExecutionError> for ErrorReplyReason
Source§fn from(original: SimpleExecutionError) -> ErrorReplyReason
fn from(original: SimpleExecutionError) -> ErrorReplyReason
Converts to this type from the input type.
Source§impl From<SimpleProgramCreationError> for ErrorReplyReason
impl From<SimpleProgramCreationError> for ErrorReplyReason
Source§fn from(original: SimpleProgramCreationError) -> ErrorReplyReason
fn from(original: SimpleProgramCreationError) -> ErrorReplyReason
Converts to this type from the input type.
Source§impl Hash for ErrorReplyReason
impl Hash for ErrorReplyReason
Source§impl Ord for ErrorReplyReason
impl Ord for ErrorReplyReason
Source§fn cmp(&self, other: &ErrorReplyReason) -> Ordering
fn cmp(&self, other: &ErrorReplyReason) -> 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 ErrorReplyReason
impl PartialEq for ErrorReplyReason
Source§impl PartialOrd for ErrorReplyReason
impl PartialOrd for ErrorReplyReason
Source§impl Sequence for ErrorReplyReason
impl Sequence for ErrorReplyReason
Source§const CARDINALITY: usize = 13usize
const CARDINALITY: usize = 13usize
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 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