pub enum StateKind {
PendingVerification,
PendingRecovery,
PendingUnpair,
SharingRound,
}Expand description
Tag identifying which kind of in-flight orchestrator state an entry in
crate::protocol::DeRecStateStore holds. Used by
crate::protocol::DeRecStateStore::load_all to filter by category.
Variants§
PendingVerification
Outstanding derec_proto::VerifyShareRequestMessage, one per
channel. Load-bearing for the replay-defence binding gate.
PendingRecovery
Recovery accumulator, one per (secret_id, version). Holds every
derec_proto::GetShareResponseMessage received so far for that
reconstruction target.
PendingUnpair
Outstanding unpair acknowledgement, one per channel. Carries the
started_at unix-seconds timestamp so the orchestrator can time
out unresponsive peers.
SharingRound
Active sharing round. At most one entry exists per secret_id
(a new start(ProtectSecret) overwrites any prior round). Holds
the per-channel tallies (pending / confirmed / failed) and
the started_at timestamp used to time out unresponsive helpers.
Trait Implementations§
impl Copy for StateKind
impl Eq for StateKind
impl StructuralPartialEq for StateKind
Auto Trait Implementations§
impl Freeze for StateKind
impl RefUnwindSafe for StateKind
impl Send for StateKind
impl Sync for StateKind
impl Unpin for StateKind
impl UnsafeUnpin for StateKind
impl UnwindSafe for StateKind
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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