Struct multiversx_sc_snippets::imports::ReturnsResult
source · pub struct ReturnsResult;
Expand description
Indicates that result will be returned.
Value will be decoded according to the type defined in the smart contract.
Trait Implementations§
source§impl<Env, Original> RHListItem<Env, Original> for ReturnsResultwhere
Env: TxEnv,
impl<Env, Original> RHListItem<Env, Original> for ReturnsResultwhere
Env: TxEnv,
source§impl<Env, Original> RHListItemExec<DeployRawResult<<Env as TxEnv>::Api>, Env, Original> for ReturnsResultwhere
Env: TxEnv,
Original: TopDecodeMulti,
impl<Env, Original> RHListItemExec<DeployRawResult<<Env as TxEnv>::Api>, Env, Original> for ReturnsResultwhere
Env: TxEnv,
Original: TopDecodeMulti,
source§fn item_process_result(
self,
raw_result: &DeployRawResult<<Env as TxEnv>::Api>
) -> Original
fn item_process_result( self, raw_result: &DeployRawResult<<Env as TxEnv>::Api> ) -> Original
The main functionality of a result handler, it either does some computation internally
(e.g. execution of a lambda function), or produces a result, or both.
source§impl<Env, Original> RHListItemExec<SyncCallRawResult<<Env as TxEnv>::Api>, Env, Original> for ReturnsResultwhere
Env: TxEnv,
Original: TopDecodeMulti,
impl<Env, Original> RHListItemExec<SyncCallRawResult<<Env as TxEnv>::Api>, Env, Original> for ReturnsResultwhere
Env: TxEnv,
Original: TopDecodeMulti,
source§fn item_process_result(
self,
raw_result: &SyncCallRawResult<<Env as TxEnv>::Api>
) -> Original
fn item_process_result( self, raw_result: &SyncCallRawResult<<Env as TxEnv>::Api> ) -> Original
The main functionality of a result handler, it either does some computation internally
(e.g. execution of a lambda function), or produces a result, or both.
source§impl<Env, Original> RHListItemExec<TxResponse, Env, Original> for ReturnsResultwhere
Env: TxEnv,
Original: TopDecodeMulti,
impl<Env, Original> RHListItemExec<TxResponse, Env, Original> for ReturnsResultwhere
Env: TxEnv,
Original: TopDecodeMulti,
source§fn item_process_result(
self,
tx_response: &TxResponse
) -> <ReturnsResult as RHListItem<Env, Original>>::Returns
fn item_process_result( self, tx_response: &TxResponse ) -> <ReturnsResult as RHListItem<Env, Original>>::Returns
The main functionality of a result handler, it either does some computation internally
(e.g. execution of a lambda function), or produces a result, or both.
Auto Trait Implementations§
impl Freeze for ReturnsResult
impl RefUnwindSafe for ReturnsResult
impl Send for ReturnsResult
impl Sync for ReturnsResult
impl Unpin for ReturnsResult
impl UnwindSafe for ReturnsResult
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> InterpretableFrom<T> for T
impl<T> InterpretableFrom<T> for T
fn interpret_from(from: T, _context: &InterpreterContext) -> T
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more