pub struct StorageRevision {
pub len: u64,
pub modified_nanos: u128,
}Expand description
Cheap fingerprint of a database file, used to answer “has anyone else written since I last looked?” without reparsing.
Fields§
§len: u64Size of the database file in bytes (0 when it does not exist).
modified_nanos: u128Last modification time in nanoseconds since the Unix epoch.
Implementations§
Trait Implementations§
Source§impl Clone for StorageRevision
impl Clone for StorageRevision
Source§fn clone(&self) -> StorageRevision
fn clone(&self) -> StorageRevision
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StorageRevision
Source§impl Debug for StorageRevision
impl Debug for StorageRevision
Source§impl Default for StorageRevision
impl Default for StorageRevision
Source§fn default() -> StorageRevision
fn default() -> StorageRevision
Returns the “default value” for a type. Read more
impl Eq for StorageRevision
Source§impl PartialEq for StorageRevision
impl PartialEq for StorageRevision
impl StructuralPartialEq for StorageRevision
Auto Trait Implementations§
impl Freeze for StorageRevision
impl RefUnwindSafe for StorageRevision
impl Send for StorageRevision
impl Sync for StorageRevision
impl Unpin for StorageRevision
impl UnsafeUnpin for StorageRevision
impl UnwindSafe for StorageRevision
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