pub struct OriginalResultMarker<O> { /* private fields */ }
Expand description
Contains no data.
Indicates to the compiler the original result type expected from a transaction.
Note that the transaction result might be interpreted as a different type, but the originally declared type is required to perform any type checking.
Implementations§
Source§impl<O> OriginalResultMarker<O>
impl<O> OriginalResultMarker<O>
pub fn new() -> OriginalResultMarker<O>
Trait Implementations§
Source§impl<O> Default for OriginalResultMarker<O>
impl<O> Default for OriginalResultMarker<O>
Source§fn default() -> OriginalResultMarker<O>
fn default() -> OriginalResultMarker<O>
Returns the “default value” for a type. Read more
Source§impl<Env, O> RHList<Env> for OriginalResultMarker<O>where
Env: TxEnv,
impl<Env, O> RHList<Env> for OriginalResultMarker<O>where
Env: TxEnv,
type ListReturns = ()
Source§impl<Env, O, T> RHListAppendNoRet<Env, T> for OriginalResultMarker<O>
impl<Env, O, T> RHListAppendNoRet<Env, T> for OriginalResultMarker<O>
type NoRetOutput = ConsNoRet<Env, T, OriginalResultMarker<O>>
fn append_no_ret( self, t: T, ) -> <OriginalResultMarker<O> as RHListAppendNoRet<Env, T>>::NoRetOutput
Source§impl<Env, O, T> RHListAppendRet<Env, T> for OriginalResultMarker<O>where
Env: TxEnv,
T: RHListItem<Env, O>,
impl<Env, O, T> RHListAppendRet<Env, T> for OriginalResultMarker<O>where
Env: TxEnv,
T: RHListItem<Env, O>,
type RetOutput = ConsRet<Env, T, OriginalResultMarker<O>>
fn append_ret( self, t: T, ) -> <OriginalResultMarker<O> as RHListAppendRet<Env, T>>::RetOutput
Source§impl<RawResult, Env, O> RHListExec<RawResult, Env> for OriginalResultMarker<O>where
Env: TxEnv,
impl<RawResult, Env, O> RHListExec<RawResult, Env> for OriginalResultMarker<O>where
Env: TxEnv,
Source§fn list_tx_expect(&self) -> <Env as TxEnv>::RHExpect
fn list_tx_expect(&self) -> <Env as TxEnv>::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,
) -> <OriginalResultMarker<O> as RHList<Env>>::ListReturns
fn list_process_result( self, _raw_result: &RawResult, ) -> <OriginalResultMarker<O> as RHList<Env>>::ListReturns
Aggregates the executions of all result handlers, as configured for a transaction.
Source§impl<Api, O> TxAsyncCallCallback<Api> for OriginalResultMarker<O>where
Api: CallTypeApi,
impl<Api, O> TxAsyncCallCallback<Api> for OriginalResultMarker<O>where
Api: CallTypeApi,
fn save_callback_closure_to_storage(&self)
Source§impl<Api, O> TxPromisesCallback<Api> for OriginalResultMarker<O>where
Api: CallTypeApi,
impl<Api, O> TxPromisesCallback<Api> for OriginalResultMarker<O>where
Api: CallTypeApi,
fn callback_name(&self) -> &'static str
fn overwrite_with_serialized_args( &self, cb_closure_args_serialized: &mut ManagedBuffer<Api>, )
fn gas_for_callback(&self) -> u64
Source§impl<Env, O> TxResultHandler<Env> for OriginalResultMarker<O>where
Env: TxEnv,
impl<Env, O> TxResultHandler<Env> for OriginalResultMarker<O>where
Env: TxEnv,
type OriginalResult = O
impl<Env, O> TxEmptyResultHandler<Env> for OriginalResultMarker<O>where
Env: TxEnv,
Auto Trait Implementations§
impl<O> Freeze for OriginalResultMarker<O>
impl<O> RefUnwindSafe for OriginalResultMarker<O>where
O: RefUnwindSafe,
impl<O> Send for OriginalResultMarker<O>where
O: Send,
impl<O> Sync for OriginalResultMarker<O>where
O: Sync,
impl<O> Unpin for OriginalResultMarker<O>where
O: Unpin,
impl<O> UnwindSafe for OriginalResultMarker<O>where
O: UnwindSafe,
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> 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