pub struct RestoreEngine { /* private fields */ }Implementations§
Source§impl RestoreEngine
impl RestoreEngine
pub fn new(config: Config, bucket: Arc<dyn BucketStore>) -> Self
pub fn with_metrics(self, metrics: Arc<dyn Metrics>) -> Self
pub async fn restore(&self) -> Result<Arc<Mutex<Manifest>>>
pub async fn local_is_newer_than_manifest(&self, manifest: &Manifest) -> bool
Sourcepub async fn is_db_empty(&self) -> Result<bool>
pub async fn is_db_empty(&self) -> Result<bool>
Check if the local DB has any user-created tables. Returns Ok(true) if the DB is empty (only sqlite internal tables), Ok(false) if it has user data, or Err on query failure.
Auto Trait Implementations§
impl !RefUnwindSafe for RestoreEngine
impl !UnwindSafe for RestoreEngine
impl Forget for RestoreEngine
impl Freeze for RestoreEngine
impl Move for RestoreEngine
impl Send for RestoreEngine
impl Sync for RestoreEngine
impl Unpin for RestoreEngine
impl UnsafeUnpin for RestoreEngine
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more