pub enum DriftStatus {
Shipped,
Differs,
NotShipped,
}Expand description
How one file in a preset directory stands against the set this build ships.
Variants§
Shipped
The filename is in EMBEDDED and the bytes are equal.
Differs
The filename is in EMBEDDED and the bytes differ.
An operator’s edit and an older release’s copy are indistinguishable
here. seed_dir never overwrites, so a preset retuned upstream
leaves the copy already on disk in place, and nothing on disk records
which shipped version that copy came from. Telling the two apart would
need a manifest of every past release’s hashes, which no build carries.
NotShipped
The filename is not in EMBEDDED — an operator’s own preset, or one a
later release retired. Seeding never removes a file, so both linger.
Implementations§
Trait Implementations§
Source§impl Clone for DriftStatus
impl Clone for DriftStatus
Source§fn clone(&self) -> DriftStatus
fn clone(&self) -> DriftStatus
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 DriftStatus
impl Debug for DriftStatus
Source§impl PartialEq for DriftStatus
impl PartialEq for DriftStatus
Source§fn eq(&self, other: &DriftStatus) -> bool
fn eq(&self, other: &DriftStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DriftStatus
impl Eq for DriftStatus
impl StructuralPartialEq for DriftStatus
Auto Trait Implementations§
impl Freeze for DriftStatus
impl RefUnwindSafe for DriftStatus
impl Send for DriftStatus
impl Sync for DriftStatus
impl Unpin for DriftStatus
impl UnsafeUnpin for DriftStatus
impl UnwindSafe for DriftStatus
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<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.