pub trait IntoTransactionResult {
type Output;
// Required method
fn into_transaction_result(self) -> TransactionResult<Self::Output>;
}Expand description
Trait implemented by return types of closures passed to ChainLockTransaction::until_done.
The callable passed to ChainLockTransaction::until_done may return:
TransactionResult<()>(a()-returning transaction),TransactionResult<T>(a transaction returning user-defined typeT), orDoneType(an infallible transaction with implied return type()).
Required Associated Types§
Required Methods§
Sourcefn into_transaction_result(self) -> TransactionResult<Self::Output>
fn into_transaction_result(self) -> TransactionResult<Self::Output>
Converts the closure return value into a TransactionResult.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".