pub enum MemberConnection {
Unknown,
Connected,
Disconnected {
since: Instant,
},
}Expand description
Whether this node has a direct session with a room member.
Gossip lists a member until its lease runs out, about two minutes after
its last renewal. A member that vanishes without Room::leave stays
listed for that long. This node’s sessions tell sooner: a member turns
Disconnected once its last direct session closes.
Only direct sessions count, dialed or accepted, as [Node::sessions]
lists them. The room’s gossip connections do not count, and neither does
a route through a media relay. A member that had no direct session with this
node while listed is Unknown. It may be present or
gone, and only its lease tells which.
Variants§
Unknown
This node has not had a direct session with the member since it was listed.
Connected
This node has a direct session with the member open.
Disconnected
The last direct session with the member closed, and none is open.
A close from either side counts, including one that this node asked
for with Session::close. A member
whose process exits closes its sessions at once. A member that crashes
or loses its network closes nothing, so this node notices only when
the QUIC idle timeout ends the session, after 30 seconds by default.
A new session makes the member Connected again.
Trait Implementations§
Source§impl Clone for MemberConnection
impl Clone for MemberConnection
impl Copy for MemberConnection
Source§impl Debug for MemberConnection
impl Debug for MemberConnection
Source§impl Default for MemberConnection
impl Default for MemberConnection
impl Eq for MemberConnection
Source§impl PartialEq for MemberConnection
impl PartialEq for MemberConnection
impl StructuralPartialEq for MemberConnection
Auto Trait Implementations§
impl Freeze for MemberConnection
impl RefUnwindSafe for MemberConnection
impl Send for MemberConnection
impl Sync for MemberConnection
impl Unpin for MemberConnection
impl UnsafeUnpin for MemberConnection
impl UnwindSafe for MemberConnection
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.