pub struct Save<R> { /* private fields */ }Expand description
File writer
Implementations§
Source§impl<R> Save<R>
impl<R> Save<R>
Sourcepub const fn create_dest_path(self, flag: bool) -> Self
pub const fn create_dest_path(self, flag: bool) -> Self
Create destination directory when it doesn’t exists
Default: true
Sourcepub const fn force_overwrite(self, flag: bool) -> Self
pub const fn force_overwrite(self, flag: bool) -> Self
Overwrite existing file
Default: true
Sourcepub const fn fix_invalid_dest(self, flag: bool) -> Self
pub const fn fix_invalid_dest(self, flag: bool) -> Self
Try to fix destination path when it is not a valid
For example, when destination already exists and it is a directory, it will be removed
Default: true
Sourcepub const fn cleanup_on_error(self, flag: bool) -> Self
pub const fn cleanup_on_error(self, flag: bool) -> Self
Cleanup already written data when errors occurs
Default: true
Source§impl<R> Save<R>
impl<R> Save<R>
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for Save<R>where
R: Freeze,
impl<R> !RefUnwindSafe for Save<R>
impl<R> Send for Save<R>where
R: Send,
impl<R> Sync for Save<R>where
R: Sync,
impl<R> Unpin for Save<R>where
R: Unpin,
impl<R> !UnwindSafe for Save<R>
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