pub struct RestoreOutcome {
pub pool: SqlitePool,
pub pre_restore_backup: Option<PathBuf>,
}Expand description
The result of a successful restore_from: the fresh pool to use going forward, and
where the previously-live database was safety-copied to before being overwritten.
Fields§
§pool: SqlitePool§pre_restore_backup: Option<PathBuf>None only when db_path didn’t exist yet (a fresh install being restored into for
the first time) — there was nothing to safety-copy.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RestoreOutcome
impl !UnwindSafe for RestoreOutcome
impl Freeze for RestoreOutcome
impl Send for RestoreOutcome
impl Sync for RestoreOutcome
impl Unpin for RestoreOutcome
impl UnsafeUnpin for RestoreOutcome
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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