#[repr(u8)]pub enum SuccessReplyReason {
Auto = 0,
Manual = 1,
Unsupported = 255,
}Expand description
Reason of success reply creation.
Variants§
Auto = 0
Success reply was created by system automatically.
Manual = 1
Success reply was created by actor manually.
Unsupported = 255
Unsupported reason of success reply. Variant exists for backward compatibility.
Trait Implementations§
Source§impl Clone for SuccessReplyReason
impl Clone for SuccessReplyReason
Source§fn clone(&self) -> SuccessReplyReason
fn clone(&self) -> SuccessReplyReason
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 SuccessReplyReason
impl Debug for SuccessReplyReason
Source§impl Decode for SuccessReplyReason
impl Decode for SuccessReplyReason
Source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<SuccessReplyReason, Error>where
__CodecInputEdqy: Input,
fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<SuccessReplyReason, 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 SuccessReplyReason
impl<'de> Deserialize<'de> for SuccessReplyReason
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SuccessReplyReason, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SuccessReplyReason, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SuccessReplyReason
impl Display for SuccessReplyReason
Source§impl Encode for SuccessReplyReason
impl Encode for SuccessReplyReason
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 SuccessReplyReason
impl EncodeAsType for SuccessReplyReason
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 SuccessReplyReason
impl Error for SuccessReplyReason
1.30.0 · 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<SuccessReplyReason> for ReplyCode
impl From<SuccessReplyReason> for ReplyCode
Source§fn from(source: SuccessReplyReason) -> ReplyCode
fn from(source: SuccessReplyReason) -> ReplyCode
Converts to this type from the input type.
Source§impl Hash for SuccessReplyReason
impl Hash for SuccessReplyReason
Source§impl IntoVisitor for SuccessReplyReason
impl IntoVisitor for SuccessReplyReason
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>() -> <SuccessReplyReason as IntoVisitor>::AnyVisitor<ScaleDecodeTypeResolver>where
ScaleDecodeTypeResolver: TypeResolver,
fn into_visitor<ScaleDecodeTypeResolver>() -> <SuccessReplyReason as IntoVisitor>::AnyVisitor<ScaleDecodeTypeResolver>where
ScaleDecodeTypeResolver: TypeResolver,
A means of obtaining this visitor.
Source§impl PartialEq for SuccessReplyReason
impl PartialEq for SuccessReplyReason
Source§impl Sequence for SuccessReplyReason
impl Sequence for SuccessReplyReason
Source§const CARDINALITY: usize = 3usize
const CARDINALITY: usize = 3usize
Number of values of type
Self. Read moreSource§fn next(&self) -> Option<SuccessReplyReason>
fn next(&self) -> Option<SuccessReplyReason>
Source§fn previous(&self) -> Option<SuccessReplyReason>
fn previous(&self) -> Option<SuccessReplyReason>
Source§impl Serialize for SuccessReplyReason
impl Serialize for SuccessReplyReason
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 SuccessReplyReason
impl TypeInfo for SuccessReplyReason
impl Copy for SuccessReplyReason
impl EncodeLike for SuccessReplyReason
impl Eq for SuccessReplyReason
impl StructuralPartialEq for SuccessReplyReason
Auto Trait Implementations§
impl Freeze for SuccessReplyReason
impl RefUnwindSafe for SuccessReplyReason
impl Send for SuccessReplyReason
impl Sync for SuccessReplyReason
impl Unpin for SuccessReplyReason
impl UnwindSafe for SuccessReplyReason
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.