pub struct ReservationNonce(/* private fields */);
Expand description
An unchangeable wrapper over u64 value, which is required to be used as a “view-only” reservations nonce in a message execution context.
§Note:
By contract, It must be instantiated only once, when message execution context is created. Also the latter is required to be instantiated only once, when incoming dispatch is created.
Trait Implementations§
Source§impl Clone for ReservationNonce
impl Clone for ReservationNonce
Source§fn clone(&self) -> ReservationNonce
fn clone(&self) -> ReservationNonce
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 ReservationNonce
impl Debug for ReservationNonce
Source§impl Decode for ReservationNonce
impl Decode for ReservationNonce
Source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Self, Error>
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 ReservationNonce
impl Default for ReservationNonce
Source§fn default() -> ReservationNonce
fn default() -> ReservationNonce
Returns the “default value” for a type. Read more
Source§impl Encode for ReservationNonce
impl Encode for ReservationNonce
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: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn>(
&self,
f: __CodecUsingEncodedCallback,
) -> __CodecOutputReturn
fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn>( &self, f: __CodecUsingEncodedCallback, ) -> __CodecOutputReturn
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 Hash for ReservationNonce
impl Hash for ReservationNonce
Source§impl Ord for ReservationNonce
impl Ord for ReservationNonce
Source§fn cmp(&self, other: &ReservationNonce) -> Ordering
fn cmp(&self, other: &ReservationNonce) -> 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 ReservationNonce
impl PartialEq for ReservationNonce
Source§impl PartialOrd for ReservationNonce
impl PartialOrd for ReservationNonce
Source§impl TypeInfo for ReservationNonce
impl TypeInfo for ReservationNonce
impl Copy for ReservationNonce
impl EncodeLike for ReservationNonce
impl Eq for ReservationNonce
impl StructuralPartialEq for ReservationNonce
Auto Trait Implementations§
impl Freeze for ReservationNonce
impl RefUnwindSafe for ReservationNonce
impl Send for ReservationNonce
impl Sync for ReservationNonce
impl Unpin for ReservationNonce
impl UnwindSafe for ReservationNonce
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