[−][src]Struct tfio::Transaction
A rollbackable Transaction
Implementations
impl Transaction
[src]
pub fn new() -> Self
[src]
Constructs a new, empty Transaction
pub fn create_file<S: Into<String>>(self, path: S) -> Transaction
[src]
Adds a CreateFile operation to the transaction
pub fn create_dir<S: Into<String>>(self, path: S) -> Transaction
[src]
Adds a CreateDirectory operation to the transaction
pub fn append_file<S: Into<String>>(
self,
source: S,
temp_dir: S,
data: Vec<u8>
) -> Transaction
[src]
self,
source: S,
temp_dir: S,
data: Vec<u8>
) -> Transaction
Adds a AppendFile operation to the transaction
pub fn copy_file<S: Into<String>>(self, source: S, dest: S) -> Transaction
[src]
Adds a CopyFile operation to the transaction
pub fn copy_dir<S: Into<String>>(
self,
source: S,
dest: S,
temp_dir: S
) -> Transaction
[src]
self,
source: S,
dest: S,
temp_dir: S
) -> Transaction
Adds a CopyDirectory operation to the transaction
pub fn delete_file<S: Into<String>>(self, source: S, temp_dir: S) -> Transaction
[src]
Adds a DeleteFile operation to the transaction
pub fn delete_dir<S: Into<String>>(self, source: S, temp_dir: S) -> Transaction
[src]
Adds a DeleteDirectory operation to the transaction
pub fn move_file<S: Into<String>>(self, source: S, dest: S) -> Transaction
[src]
Adds a MoveFile operation to the transaction
pub fn move_dir<S: Into<String>>(self, source: S, dest: S) -> Transaction
[src]
Adds a MoveDirectory operation to the transaction
pub fn write_file<S: Into<String>>(
self,
source: S,
temp_dir: S,
data: Vec<u8>
) -> Transaction
[src]
self,
source: S,
temp_dir: S,
data: Vec<u8>
) -> Transaction
Adds a WriteFile operation to the transaction
Trait Implementations
impl RollbackableOperation for Transaction
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Transaction
impl !Send for Transaction
impl !Sync for Transaction
impl Unpin for Transaction
impl !UnwindSafe for Transaction
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,