pub enum ChannelStatus {
Pending,
Paired,
Unpairing,
}Expand description
Status of a channel in the protocol lifecycle.
A channel starts as Pending after pairing completes and transitions to
Paired once fingerprint verification succeeds. Two cases take that path:
- Replica channels, always. Admitting a second device to the group is a human decision.
derec_proto::ContactMode::NoKeyschannels, whatever the kind. That mode inlines neither the keys nor a commitment to them, so nothing binds what the scanner received over the plaintextPrePairleg to the contact delivered out of band. The fingerprint, derived from the established shared key, is the only check that detects a substituted key — it is toNoKeyswhatcontact_binding_hashis toderec_proto::ContactMode::HashedKeys.
Helper/Owner channels paired over
derec_proto::ContactMode::InlineKeys or
derec_proto::ContactMode::HashedKeys are Paired immediately: the
contact carried the keys, or a commitment already verified against them.
Variants§
Pending
Channel is awaiting out-of-band fingerprint confirmation: every
replica pairing, and every
derec_proto::ContactMode::NoKeys pairing. Not a publish target,
not a recovery source, and inbound messages on it are ignored.
Paired
Channel is fully paired and ready for protocol messages.
Unpairing
Being torn down. A helper channel is Unpairing from the moment an
unpair under UnpairAck::Required
is sent until the helper answers or the acknowledgement window
elapses; a rejection returns it to Paired, except for a recovery
channel restore tears down, which is dropped. A replica member is
Unpairing once told to leave, until the version that completes its
removal. Not a publish target, not a recovery source, and not a
target of any new request, but inbound messages on it are still
processed, so the answer to the unpair is.
Trait Implementations§
Source§impl Clone for ChannelStatus
impl Clone for ChannelStatus
impl Copy for ChannelStatus
Source§impl Debug for ChannelStatus
impl Debug for ChannelStatus
Source§impl Default for ChannelStatus
impl Default for ChannelStatus
Source§impl<'de> Deserialize<'de> for ChannelStatus
impl<'de> Deserialize<'de> for ChannelStatus
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>,
impl Eq for ChannelStatus
Source§impl PartialEq for ChannelStatus
impl PartialEq for ChannelStatus
Source§impl Serialize for ChannelStatus
impl Serialize for ChannelStatus
impl StructuralPartialEq for ChannelStatus
Auto Trait Implementations§
impl Forget for ChannelStatus
impl Freeze for ChannelStatus
impl Move for ChannelStatus
impl RefUnwindSafe for ChannelStatus
impl Send for ChannelStatus
impl Sync for ChannelStatus
impl Unpin for ChannelStatus
impl UnsafeUnpin for ChannelStatus
impl UnwindSafe for ChannelStatus
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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