Enum matchbox_socket::PeerState
source · pub enum PeerState {
Connected,
Disconnected,
}
Expand description
The state of a connection to a peer
Variants§
Connected
The peer is connected
This means all of the following should be true:
- The requested data channels have been established and are healthy
- The peer hasn’t left the signaling server
Disconnected
We no longer have a connection to this peer:
This means either:
- Some of the the data channels got disconnected/closed
- The peer left the signaling server
Trait Implementations§
source§impl PartialEq for PeerState
impl PartialEq for PeerState
impl Copy for PeerState
impl Eq for PeerState
impl StructuralPartialEq for PeerState
Auto Trait Implementations§
impl RefUnwindSafe for PeerState
impl Send for PeerState
impl Sync for PeerState
impl Unpin for PeerState
impl UnwindSafe for PeerState
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
Mutably borrows from an owned value. Read more