pub enum DurableFormat {
Versioned(u32),
Unversioned,
}Expand description
What format a durable database is in.
Variants§
Versioned(u32)
A format record states the version.
Unversioned
No format record: the database predates format versioning.
This is a version, not an absence of one. It is the only case where the records themselves are examined to decide compatibility, and that examination is a deliberate one-time probe rather than a deserialization attempt whose failure is discarded.
Trait Implementations§
Source§impl Clone for DurableFormat
impl Clone for DurableFormat
Source§impl Debug for DurableFormat
impl Debug for DurableFormat
Source§impl Default for DurableFormat
impl Default for DurableFormat
Source§impl Display for DurableFormat
impl Display for DurableFormat
impl Eq for DurableFormat
Source§impl PartialEq for DurableFormat
impl PartialEq for DurableFormat
impl StructuralPartialEq for DurableFormat
Auto Trait Implementations§
impl Freeze for DurableFormat
impl RefUnwindSafe for DurableFormat
impl Send for DurableFormat
impl Sync for DurableFormat
impl Unpin for DurableFormat
impl UnsafeUnpin for DurableFormat
impl UnwindSafe for DurableFormat
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