pub struct FileBackupManager;Expand description
Manages file backups to the local session store and remote backup locations
Implementations§
Source§impl FileBackupManager
impl FileBackupManager
Sourcepub fn move_local_path_to_backup(path: &str) -> Result<String, String>
pub fn move_local_path_to_backup(path: &str) -> Result<String, String>
Move a local path (file or directory) to backup location in the session store
Sourcepub async fn move_remote_path_to_backup(
conn: &Arc<RemoteConnection>,
path: &str,
) -> Result<String, String>
pub async fn move_remote_path_to_backup( conn: &Arc<RemoteConnection>, path: &str, ) -> Result<String, String>
Move a remote path (file or directory) to backup location on the remote machine
Auto Trait Implementations§
impl Freeze for FileBackupManager
impl RefUnwindSafe for FileBackupManager
impl Send for FileBackupManager
impl Sync for FileBackupManager
impl Unpin for FileBackupManager
impl UnwindSafe for FileBackupManager
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