Struct dist_tx::rm::CRmWrapper

source ·
pub struct CRmWrapper<T>(pub T);
Expand description

Wraps an instance of CResourceManager and implements ResourceManager.

For registering an instance of “YourCResourceManager” at a transaction manager, just use a Box<CRmWrapper(YourCResourceManager)>.

Tuple Fields

0: T

Trait Implementations

Tells the server to start work on behalf of the given transaction branch.
Tells the server to join working on behalf of the given transaction branch.
Tells the server to resume working on behalf of the given transaction branch.
Tells the server to end working on behalf of the given transaction branch.
Tells the server to stop working on behalf of the given transaction branch, transaction will not be committed. Read more
Tells the server to suspend working on behalf of the given transaction branch.
Tells the server to prepare to commit the work done in the given transaction branch.
Tells the server to commit the work done in the given prepared transaction branch.
Tells the server to commit the work done in the given not-prepared transaction branch.
Tells the server to rollback the work done in the given transaction branch.
Tells the server to forget about the given heuristically completed transaction.
Returns the list of transactions that have been prepared or heuristically completed. Read more
Returns the list of transactions that have been prepared or heuristically completed. Read more
Returns the list of transactions that have been prepared or heuristically completed. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.