Enum gstd::errors::ErrorReplyReason
source · #[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.
§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
§fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
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>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. 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,
)where
__CodecOutputEdqy: Output + ?Sized,
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
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
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere
T: Decode,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> KeyedVec for Twhere
T: Codec,
impl<T> KeyedVec for Twhere
T: Codec,
§fn to_keyed_vec(&self, prepend_key: &[u8]) -> Vec<u8>
fn to_keyed_vec(&self, prepend_key: &[u8]) -> Vec<u8>
Return an encoding of
Self
prepended by given slice.