pub enum CheckResult {
UpToDate {
version: Version,
},
UpgradeAvailable {
from: Version,
to: Version,
migrations: Vec<String>,
},
Downgrade {
db: Version,
binary: Version,
},
Unversioned {
implicit: Version,
},
Corrupt(String),
}Expand description
Result of check() — what a consumer should do at startup.
Variants§
UpToDate
Stored version equals target, or target reachable with zero migrations.
UpgradeAvailable
Stored version predates target and migrations exist.
Downgrade
The .db schema is newer than this binary knows about.
Unversioned
No /_meta/schema_version sentinel — pre-0.4 database.
Corrupt(String)
Corrupt/unparseable meta sentinel.
Trait Implementations§
Source§impl Clone for CheckResult
impl Clone for CheckResult
Auto Trait Implementations§
impl Freeze for CheckResult
impl RefUnwindSafe for CheckResult
impl Send for CheckResult
impl Sync for CheckResult
impl Unpin for CheckResult
impl UnsafeUnpin for CheckResult
impl UnwindSafe for CheckResult
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