pub enum EscrowCoverage {
Current,
Behind,
Superseded,
Divergent,
Unreadable,
}Expand description
How an album key escrow the server holds stands against the album a device holds
(PersistedAlbum::escrow_coverage). Only Superseded is a state the
device may overwrite: every other one either needs nothing or would lose an epoch.
Variants§
Current
The escrow is this album’s state exactly.
Behind
The escrow holds every epoch this album holds, with the same keys, and more: another device rotated further, or the escrow holds a write-tier seed, admin seed or authority this album lacks (a read-only device). Every local epoch is covered; replacing it would drop the newer epochs or the capability, so it is left alone.
Superseded
This album holds every epoch the escrow holds, with the same keys, and more (or the same epochs with other details changed), and every seed and authority the escrow holds: replacing the escrow only adds to it.
Divergent
The two disagree: a shared epoch under different keys, each holds an epoch the other lacks, or this album holds an epoch the escrow lacks while the escrow holds a seed or authority this album lacks. Neither may replace the other without losing an epoch or a capability, so it is left alone and this album’s own epochs stay uncovered.
Unreadable
The escrow does not open under this master key as this album — sealed under another master key, or not an escrow of it. Left alone: replacing what cannot be read could destroy epochs this device cannot see.
Trait Implementations§
Source§impl Clone for EscrowCoverage
impl Clone for EscrowCoverage
Source§fn clone(&self) -> EscrowCoverage
fn clone(&self) -> EscrowCoverage
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for EscrowCoverage
Source§impl Debug for EscrowCoverage
impl Debug for EscrowCoverage
impl Eq for EscrowCoverage
Source§impl PartialEq for EscrowCoverage
impl PartialEq for EscrowCoverage
Source§fn eq(&self, other: &EscrowCoverage) -> bool
fn eq(&self, other: &EscrowCoverage) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EscrowCoverage
Auto Trait Implementations§
impl Freeze for EscrowCoverage
impl RefUnwindSafe for EscrowCoverage
impl Send for EscrowCoverage
impl Sync for EscrowCoverage
impl Unpin for EscrowCoverage
impl UnsafeUnpin for EscrowCoverage
impl UnwindSafe for EscrowCoverage
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
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<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
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>
§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>
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>
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