Trait tfio::RollbackableOperation[][src]

pub trait RollbackableOperation {
    fn execute(&mut self) -> Result<()>;
fn rollback(&self) -> Result<()>; }

Trait that represents a Rollbackable operation

Required methods

fn execute(&mut self) -> Result<()>[src]

Executes the operation

fn rollback(&self) -> Result<()>[src]

Rollbacks the operation

Loading content...

Implementors

impl RollbackableOperation for AppendFile[src]

impl RollbackableOperation for CopyDirectory[src]

impl RollbackableOperation for CopyFile[src]

impl RollbackableOperation for CreateDirectory[src]

impl RollbackableOperation for CreateFile[src]

impl RollbackableOperation for DeleteDirectory[src]

impl RollbackableOperation for DeleteFile[src]

impl RollbackableOperation for MoveOperation[src]

impl RollbackableOperation for Transaction[src]

fn execute(&mut self) -> Result<()>[src]

Executes the transaction

fn rollback(&self) -> Result<()>[src]

Performs rollback on the transaction

Only the operations that were executed will be rollbacked

impl RollbackableOperation for WriteFile[src]

Loading content...