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<_0, _1> Decode for GasNodeId<_0, _1>where
_0: Decode,
_1: Decode,
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>
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,
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<_0, _1> Encode for GasNodeId<_0, _1>where
_0: Encode,
_1: Encode,
impl<_0, _1> Encode for GasNodeId<_0, _1>where _0: Encode, _1: Encode,
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.
§fn using_encoded<R, F>(&self, f: F) -> Rwhere
F: FnOnce(&[u8]) -> R,
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
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
source§impl<M> From<ReservationId> for GasNodeId<M, ReservationId>
impl<M> From<ReservationId> for GasNodeId<M, ReservationId>
source§fn from(other: ReservationId) -> Self
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,
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,
source§fn into_visitor() -> Self::Visitor
fn into_visitor() -> Self::Visitor
A means of obtaining this visitor.