Type Alias gsdk::GearGasNodeId

source ·
pub type GearGasNodeId = GasNodeId<MessageId, ReservationId>;
Expand description

Gear gas node id.

Aliased Type§

enum GearGasNodeId {
    Node(MessageId),
    Reservation(ReservationId),
}

Variants§

§

Node(MessageId)

§

Reservation(ReservationId)

Trait Implementations§

source§

impl<M: Clone, R: Clone> Clone for GasNodeId<M, R>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<_0: Debug, _1: Debug> Debug for GasNodeId<_0, _1>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<_0, _1> Decode for GasNodeId<_0, _1>where _0: Decode, _1: Decode,

source§

fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>

Attempt to deserialise the value from 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,

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
source§

impl<_0, _1> Encode for GasNodeId<_0, _1>where _0: Encode, _1: Encode,

source§

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 )

Convert self to a slice and append it to the destination.
§

fn encode(&self) -> Vec<u8, Global>

Convert self to an owned vector.
§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> 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
source§

impl<M> From<ReservationId> for GasNodeId<M, ReservationId>

source§

fn from(other: ReservationId) -> Self

Converts to this type from the input type.
source§

impl<_0, _1> IntoVisitor for GasNodeId<_0, _1>where _0: IntoVisitor, Error: From<<<_0 as IntoVisitor>::Visitor as Visitor>::Error> + From<<<_1 as IntoVisitor>::Visitor as Visitor>::Error>, _1: IntoVisitor,

§

type Visitor = Visitor<_0, _1>

The visitor type used to decode SCALE encoded bytes to Self.
source§

fn into_visitor() -> Self::Visitor

A means of obtaining this visitor.
source§

impl<M: Copy, R: Copy> Copy for GasNodeId<M, R>

source§

impl<_0, _1> EncodeLike<GasNodeId<_0, _1>> for GasNodeId<_0, _1>where _0: Encode, _1: Encode,