XsTransaction

Trait XsTransaction 

Source
pub trait XsTransaction: Xs {
    type Span: Xs;

    // Required method
    fn transaction(&self) -> Result<Self::Span>;
}
Expand description

Xenstore transaction capability trait.

A transaction can be created with XsTransaction::transaction as a XsTransactionSpan. This span can be used to make operation within this transaction and be effective only if the transaction is commited (XsTransactionSpan::commit).

If you want to discard the transaction and make its changes effective, use XsTransactionSpan::commit.

§Drop

Drop is called on a transaction, it is aborted.

Required Associated Types§

Required Methods§

Source

fn transaction(&self) -> Result<Self::Span>

Implementors§