pub struct OpenOrDegrade {
pub conn: Connection,
pub report: MigrationReport,
pub degraded: Option<Degraded>,
}Expand description
What DbOptions::open_writer_migrated_or_degrade returns.
Fields§
§conn: ConnectionThe writer to use: the database at the path, or a private in-memory store when degraded.
report: MigrationReportThe migration report for the connection in conn.
degraded: Option<Degraded>Some when conn is not the database as it was stored: it was quarantined and recreated,
or the app runs on an in-memory store. The app should show it to the user.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for OpenOrDegrade
impl !RefUnwindSafe for OpenOrDegrade
impl !Sync for OpenOrDegrade
impl Send for OpenOrDegrade
impl Unpin for OpenOrDegrade
impl UnsafeUnpin for OpenOrDegrade
impl UnwindSafe for OpenOrDegrade
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