pub struct ReturnsResultAs<T> { /* private fields */ }
Expand description
Indicates that result will be returned.
Value will be converted to type T
, which should be compatible with the original type.
Implementations§
Source§impl<T> ReturnsResultAs<T>
impl<T> ReturnsResultAs<T>
pub fn new() -> ReturnsResultAs<T>
Trait Implementations§
Source§impl<T> Default for ReturnsResultAs<T>
impl<T> Default for ReturnsResultAs<T>
Source§fn default() -> ReturnsResultAs<T>
fn default() -> ReturnsResultAs<T>
Returns the “default value” for a type. Read more
Source§impl<Env, Original, T> RHListItem<Env, Original> for ReturnsResultAs<T>
impl<Env, Original, T> RHListItem<Env, Original> for ReturnsResultAs<T>
Source§impl<Env, Original, T> RHListItemExec<SyncCallRawResult<<Env as TxEnv>::Api>, Env, Original> for ReturnsResultAs<T>
impl<Env, Original, T> RHListItemExec<SyncCallRawResult<<Env as TxEnv>::Api>, Env, Original> for ReturnsResultAs<T>
Source§fn item_process_result(
self,
raw_result: &SyncCallRawResult<<Env as TxEnv>::Api>,
) -> <ReturnsResultAs<T> as RHListItem<Env, Original>>::Returns
fn item_process_result( self, raw_result: &SyncCallRawResult<<Env as TxEnv>::Api>, ) -> <ReturnsResultAs<T> 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.
Source§impl<Env, Original, T> RHListItemExec<TxResponse, Env, Original> for ReturnsResultAs<T>
impl<Env, Original, T> RHListItemExec<TxResponse, Env, Original> for ReturnsResultAs<T>
Source§fn item_process_result(self, tx_response: &TxResponse) -> Self::Returns
fn item_process_result(self, tx_response: &TxResponse) -> Self::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<T> Freeze for ReturnsResultAs<T>
impl<T> RefUnwindSafe for ReturnsResultAs<T>where
T: RefUnwindSafe,
impl<T> Send for ReturnsResultAs<T>where
T: Send,
impl<T> Sync for ReturnsResultAs<T>where
T: Sync,
impl<T> Unpin for ReturnsResultAs<T>where
T: Unpin,
impl<T> UnwindSafe for ReturnsResultAs<T>where
T: 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