Type Alias gsdk::TxInBlockResult
source · pub type TxInBlockResult = Result<TxInBlock>;
Expand description
Transaction in block with result wrapper.
Aliased Type§
enum TxInBlockResult {
Ok(TxInBlock<GearConfig, OnlineClient<GearConfig>>),
Err(Error),
}
Variants§
Ok(TxInBlock<GearConfig, OnlineClient<GearConfig>>)
Contains the success value
Err(Error)
Contains the error value
Trait Implementations§
§impl<T, E> Decode for Result<T, E>where
T: Decode,
E: Decode,
impl<T, E> Decode for Result<T, E>where T: Decode, E: Decode,
§fn decode<I>(input: &mut I) -> Result<Result<T, E>, Error>where
I: Input,
fn decode<I>(input: &mut I) -> Result<Result<T, E>, Error>where I: 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
§impl<T, E> Encode for Result<T, E>where
T: Encode,
E: Encode,
impl<T, E> Encode for Result<T, E>where T: Encode, E: Encode,
§fn encode_to<W>(&self, dest: &mut W)where
W: Output + ?Sized,
fn encode_to<W>(&self, dest: &mut W)where W: Output + ?Sized,
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