multiversx_sc::types

Struct ConsNoRet

Source
pub struct ConsNoRet<Env, Head, Tail>
where Env: TxEnv, Head: RHListItem<Env, Tail::OriginalResult, Returns = ()>, Tail: RHList<Env>,
{ pub head: Head, pub tail: Tail, /* private fields */ }
Expand description

Handlers that return nothing.

Fields§

§head: Head§tail: Tail

Trait Implementations§

Source§

impl<Env, Head, Tail> RHList<Env> for ConsNoRet<Env, Head, Tail>
where Env: TxEnv, Head: RHListItem<Env, Tail::OriginalResult, Returns = ()>, Tail: RHList<Env>,

Source§

type ListReturns = <Tail as RHList<Env>>::ListReturns

Source§

impl<Env, Head, Tail, T> RHListAppendNoRet<Env, T> for ConsNoRet<Env, Head, Tail>
where Env: TxEnv, Head: RHListItem<Env, Tail::OriginalResult, Returns = ()>, Tail: RHList<Env> + RHListAppendNoRet<Env, T>, T: RHListItem<Env, Tail::OriginalResult, Returns = ()>,

Source§

type NoRetOutput = ConsNoRet<Env, Head, <Tail as RHListAppendNoRet<Env, T>>::NoRetOutput>

Source§

fn append_no_ret(self, t: T) -> Self::NoRetOutput

Source§

impl<Env, Head, Tail, T> RHListAppendRet<Env, T> for ConsNoRet<Env, Head, Tail>
where Env: TxEnv, Head: RHListItem<Env, Tail::OriginalResult, Returns = ()>, Tail: RHList<Env> + RHListAppendRet<Env, T>, T: RHListItem<Env, Tail::OriginalResult>,

Source§

type RetOutput = ConsNoRet<Env, Head, <Tail as RHListAppendRet<Env, T>>::RetOutput>

Source§

fn append_ret(self, t: T) -> Self::RetOutput

Source§

impl<RawResult, Env, Head, Tail> RHListExec<RawResult, Env> for ConsNoRet<Env, Head, Tail>
where Env: TxEnv, Head: RHListItemExec<RawResult, Env, Tail::OriginalResult, Returns = ()>, Tail: RHListExec<RawResult, Env>,

Source§

fn list_tx_expect(&self) -> Env::RHExpect

Provides the execution pre-processing, in which result handlers collectively produce an “expect” field. Read more
Source§

fn list_process_result(self, raw_result: &RawResult) -> Self::ListReturns

Aggregates the executions of all result handlers, as configured for a transaction.
Source§

impl<Env, Head, Tail> TxResultHandler<Env> for ConsNoRet<Env, Head, Tail>
where Env: TxEnv, Head: RHListItem<Env, Tail::OriginalResult, Returns = ()>, Tail: RHList<Env>,

Auto Trait Implementations§

§

impl<Env, Head, Tail> Freeze for ConsNoRet<Env, Head, Tail>
where Head: Freeze, Tail: Freeze,

§

impl<Env, Head, Tail> RefUnwindSafe for ConsNoRet<Env, Head, Tail>
where Head: RefUnwindSafe, Tail: RefUnwindSafe, Env: RefUnwindSafe,

§

impl<Env, Head, Tail> Send for ConsNoRet<Env, Head, Tail>
where Head: Send, Tail: Send, Env: Send,

§

impl<Env, Head, Tail> Sync for ConsNoRet<Env, Head, Tail>
where Head: Sync, Tail: Sync, Env: Sync,

§

impl<Env, Head, Tail> Unpin for ConsNoRet<Env, Head, Tail>
where Head: Unpin, Tail: Unpin, Env: Unpin,

§

impl<Env, Head, Tail> UnwindSafe for ConsNoRet<Env, Head, Tail>
where Head: UnwindSafe, Tail: UnwindSafe, Env: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.