Skip to main content

install

Function install 

Source
pub fn install<'captured>(
    captured: &'captured Captured<TransactionContext>,
) -> Result<TransactionGuard<'captured>, TransactionError>
Expand description

Install captured on the calling thread until the guard is released.

This is the form the composite uses, because it keeps the operation’s value and the restoration outcome separable; with_applied has no room for both and discards the value if restoration fails.

§Errors

Returns a TransactionError if the transaction could not be installed, in which case the thread is untouched.