pub enum PeerPresence {
Unknown,
Online,
Offline,
Leaving,
Retired,
}Expand description
Where a peer is (QarPeerPresence). Render for PeerPresence::Online peers and
PeerPresence::Unknown ones; stop at the others. A value the header does not name reads as
PeerPresence::Unknown, as the header says to treat it.
Variants§
Unknown
The hub has not reconciled the peer yet; nothing says it is gone: treat it like online.
Online
The hub sees the peer in the session.
Offline
The hub no longer sees it (a crash, a kill, a network drop); it reads online once back.
Leaving
The peer announced its leave; it may come back under the same id.
Retired
The peer left for good and never comes back under its id.
Trait Implementations§
Source§impl Clone for PeerPresence
impl Clone for PeerPresence
impl Copy for PeerPresence
Source§impl Debug for PeerPresence
impl Debug for PeerPresence
Source§impl Default for PeerPresence
impl Default for PeerPresence
impl Eq for PeerPresence
Source§impl Hash for PeerPresence
impl Hash for PeerPresence
Source§impl PartialEq for PeerPresence
impl PartialEq for PeerPresence
impl StructuralPartialEq for PeerPresence
Auto Trait Implementations§
impl Freeze for PeerPresence
impl RefUnwindSafe for PeerPresence
impl Send for PeerPresence
impl Sync for PeerPresence
impl Unpin for PeerPresence
impl UnsafeUnpin for PeerPresence
impl UnwindSafe for PeerPresence
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
Mutably borrows from an owned value. Read more