pub struct PassValue<T>(pub T);
Expand description
Simply passes a value to the result.
The value is constant with respect to the tx, will always be returned, irrespective of the tx execution.
It is especially useful in multi-calls, since it can pass context from the setup section to the result processing section.
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<Env, Original, T> RHListItem<Env, Original> for PassValue<T>where
Env: TxEnv,
impl<Env, Original, T> RHListItem<Env, Original> for PassValue<T>where
Env: TxEnv,
Source§impl<RawResult, Env, Original, T> RHListItemExec<RawResult, Env, Original> for PassValue<T>where
Env: TxEnv,
impl<RawResult, Env, Original, T> RHListItemExec<RawResult, Env, Original> for PassValue<T>where
Env: TxEnv,
Source§fn item_process_result(self, _raw_result: &RawResult) -> T
fn item_process_result(self, _raw_result: &RawResult) -> T
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 PassValue<T>where
T: Freeze,
impl<T> RefUnwindSafe for PassValue<T>where
T: RefUnwindSafe,
impl<T> Send for PassValue<T>where
T: Send,
impl<T> Sync for PassValue<T>where
T: Sync,
impl<T> Unpin for PassValue<T>where
T: Unpin,
impl<T> UnwindSafe for PassValue<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