Struct Backup
pub struct Backup { /* private fields */ }Expand description
A running backup (crate::Engine::backup).
Implementations§
§impl Backup
impl Backup
pub async fn sync(&self) -> Result<RestorePoint>
pub async fn sync(&self) -> Result<RestorePoint>
Uploads everything the log has acknowledged and every completed checkpoint now, and returns the restore point that covers it: every workflow acknowledged before this call is in it.
pub fn status(&self) -> Option<BackupStatus>
pub async fn stopped(&self)
pub async fn stopped(&self)
Waits until the backup has stopped: after the engine’s shards have
closed, its last upload (crate::Engine::shutdown waits for it).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Backup
impl !RefUnwindSafe for Backup
impl Send for Backup
impl Sync for Backup
impl Unpin for Backup
impl UnsafeUnpin for Backup
impl !UnwindSafe for Backup
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