pub struct ReadyRestore { /* private fields */ }Expand description
A committed restore waiting to be applied.
Implementations§
Source§impl ReadyRestore
impl ReadyRestore
pub fn meta(&self) -> &StageMeta
Sourcepub async fn apply(
&self,
target: &BackupTarget<'_>,
config: &mut AppConfig,
) -> Result<AppliedRestore, AppError>
pub async fn apply( &self, target: &BackupTarget<'_>, config: &mut AppConfig, ) -> Result<AppliedRestore, AppError>
Replace the store’s state with the restored one, under target’s
storage key, and re-create the rows target needs that a backup never
carries. Idempotent: an interrupted apply is simply run again.
config is the running config. Outside an enclave the restored identity
is written to it and saved to config.toml; in an enclave config is
delivered by the parent each boot, so the identity is written to the
store instead and only mirrored into config for this boot.
Auto Trait Implementations§
impl Freeze for ReadyRestore
impl RefUnwindSafe for ReadyRestore
impl Send for ReadyRestore
impl Sync for ReadyRestore
impl Unpin for ReadyRestore
impl UnsafeUnpin for ReadyRestore
impl UnwindSafe for ReadyRestore
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