pub struct StampTransition {
pub previous: Option<VersionStamp>,
pub current: VersionStamp,
}Expand description
What stamping observed. Returned so the daemon can act on an upgrade instead of silently erasing the evidence of one.
Fields§
§previous: Option<VersionStamp>The stamp found on disk, if any. None on a fresh install — or when the
file was unreadable, which is deliberately not distinguished here: both
mean “no usable predecessor”, and doctor reports an unparseable stamp
separately.
current: VersionStampWhat was written.
Implementations§
Source§impl StampTransition
impl StampTransition
Sourcepub fn schema_from_the_future(&self) -> bool
pub fn schema_from_the_future(&self) -> bool
On-disk state uses a schema generation NEWER than this binary understands — i.e. a downgrade.
This is the case STATE_SCHEMA_VERSION’s own contract calls out (“older
than this should refuse rather than corrupt”) and that nothing acted on.
A user reverting to an older CAR would silently operate on state written
to a layout it does not know.
Trait Implementations§
Source§impl Clone for StampTransition
impl Clone for StampTransition
Source§fn clone(&self) -> StampTransition
fn clone(&self) -> StampTransition
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 moreAuto Trait Implementations§
impl Freeze for StampTransition
impl RefUnwindSafe for StampTransition
impl Send for StampTransition
impl Sync for StampTransition
impl Unpin for StampTransition
impl UnsafeUnpin for StampTransition
impl UnwindSafe for StampTransition
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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