pub struct Transaction { /* private fields */ }
Expand description
A rollbackable Transaction
Implementations§
Source§impl Transaction
impl Transaction
Sourcepub fn create_file<S: AsRef<Path>>(self, path: S) -> Transaction
pub fn create_file<S: AsRef<Path>>(self, path: S) -> Transaction
Adds a CreateFile operation to the transaction
Sourcepub fn create_dir<S: AsRef<Path>>(self, path: S) -> Transaction
pub fn create_dir<S: AsRef<Path>>(self, path: S) -> Transaction
Adds a CreateDirectory operation to the transaction
Sourcepub fn append_file<S: AsRef<Path>>(
self,
source: S,
temp_dir: S,
data: Vec<u8>,
) -> Transaction
pub fn append_file<S: AsRef<Path>>( self, source: S, temp_dir: S, data: Vec<u8>, ) -> Transaction
Adds a AppendFile operation to the transaction
Sourcepub fn copy_file<S: AsRef<Path>>(self, source: S, dest: S) -> Transaction
pub fn copy_file<S: AsRef<Path>>(self, source: S, dest: S) -> Transaction
Adds a CopyFile operation to the transaction
Sourcepub fn copy_dir<S: AsRef<Path>>(
self,
source: S,
dest: S,
temp_dir: S,
) -> Transaction
pub fn copy_dir<S: AsRef<Path>>( self, source: S, dest: S, temp_dir: S, ) -> Transaction
Adds a CopyDirectory operation to the transaction
Sourcepub fn delete_file<S: AsRef<Path>>(self, source: S, temp_dir: S) -> Transaction
pub fn delete_file<S: AsRef<Path>>(self, source: S, temp_dir: S) -> Transaction
Adds a DeleteFile operation to the transaction
Sourcepub fn delete_dir<S: AsRef<Path>>(self, source: S, temp_dir: S) -> Transaction
pub fn delete_dir<S: AsRef<Path>>(self, source: S, temp_dir: S) -> Transaction
Adds a DeleteDirectory operation to the transaction
Sourcepub fn move_file<S: AsRef<Path>>(self, source: S, dest: S) -> Transaction
pub fn move_file<S: AsRef<Path>>(self, source: S, dest: S) -> Transaction
Adds a MoveFile operation to the transaction
Sourcepub fn move_dir<S: AsRef<Path>>(self, source: S, dest: S) -> Transaction
pub fn move_dir<S: AsRef<Path>>(self, source: S, dest: S) -> Transaction
Adds a MoveDirectory operation to the transaction
Sourcepub fn write_file<S: AsRef<Path>>(
self,
source: S,
temp_dir: S,
data: Vec<u8>,
) -> Transaction
pub fn write_file<S: AsRef<Path>>( self, source: S, temp_dir: S, data: Vec<u8>, ) -> Transaction
Adds a WriteFile operation to the transaction
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Transaction
impl !RefUnwindSafe for Transaction
impl !Send for Transaction
impl !Sync for Transaction
impl Unpin for Transaction
impl !UnwindSafe for Transaction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more