pub struct CurrentDbVersion {
pub max_sequence_number: u32,
pub commit_time: Timestamp,
}Expand description
The contents of the CURRENT file: which sequence number is committed, and when that commit
happened.
§Compatibility
Unlike other parts of the persistent database the CURRENT file is occasionally read by other
versions of turbopack, so we should be careful when updating this struct
- Never rename a field. This will break readers from other versions
- Never remove a field, unless it has always had
[serde(default)] - Never change the type of a field
- New fields should be
#[serde(default)]and semantically optional to readers from other versions - Never add
#[serde(deny_unknown_fields)].
Field names are also parsed outside this crate (next.js reads CURRENT directly, in
turbopack-cache-seed.ts), so a rename would have to move in lockstep there too.
Fields§
§max_sequence_number: u32The highest sequence number that is part of the committed database.
commit_time: TimestampWhen this database was last committed to.
Trait Implementations§
Source§impl Clone for CurrentDbVersion
impl Clone for CurrentDbVersion
Source§fn clone(&self) -> CurrentDbVersion
fn clone(&self) -> CurrentDbVersion
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 moreSource§impl Debug for CurrentDbVersion
impl Debug for CurrentDbVersion
Source§impl<'de> Deserialize<'de> for CurrentDbVersion
impl<'de> Deserialize<'de> for CurrentDbVersion
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CurrentDbVersion
Source§impl PartialEq for CurrentDbVersion
impl PartialEq for CurrentDbVersion
Source§impl Serialize for CurrentDbVersion
impl Serialize for CurrentDbVersion
impl StructuralPartialEq for CurrentDbVersion
Auto Trait Implementations§
impl Freeze for CurrentDbVersion
impl RefUnwindSafe for CurrentDbVersion
impl Send for CurrentDbVersion
impl Sync for CurrentDbVersion
impl Unpin for CurrentDbVersion
impl UnsafeUnpin for CurrentDbVersion
impl UnwindSafe for CurrentDbVersion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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