pub enum SendReadiness {
Ready,
Connecting,
Disconnected,
}Expand description
huddle 1.2: whether a message typed into a room can actually leave this
device right now. The UIs query this to gate the composer instead of
optimistically echoing a message that silently reaches no one — the
“I typed but nothing happened” failure. Distinct from RoomTransport,
which is a pure status label.
Variants§
Ready
A live transport exists (a direct LAN link to a member, or the relay). The message will be delivered live, or — over the relay — reliably queued in the recipient’s offline mailbox until they reconnect.
Connecting
The relay is configured but not connected yet (booting, reconnecting, or the Tor circuit is still coming up). Sending now would not leave the device, so the UI should hold the message and show “connecting”.
Disconnected
No transport at all — the relay is disabled (--no-server) and there’s
no LAN link. Nothing typed here can reach the other party.
Implementations§
Trait Implementations§
Source§impl Clone for SendReadiness
impl Clone for SendReadiness
Source§fn clone(&self) -> SendReadiness
fn clone(&self) -> SendReadiness
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 SendReadiness
Source§impl Debug for SendReadiness
impl Debug for SendReadiness
impl Eq for SendReadiness
Source§impl PartialEq for SendReadiness
impl PartialEq for SendReadiness
Source§fn eq(&self, other: &SendReadiness) -> bool
fn eq(&self, other: &SendReadiness) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SendReadiness
Auto Trait Implementations§
impl Freeze for SendReadiness
impl RefUnwindSafe for SendReadiness
impl Send for SendReadiness
impl Sync for SendReadiness
impl Unpin for SendReadiness
impl UnsafeUnpin for SendReadiness
impl UnwindSafe for SendReadiness
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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>
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