pub enum DisconnectReason {
LocalClose,
Dropped,
IceFailed,
IceDisconnected,
DtlsFailed,
DtlsClosed,
SctpHeartbeatTimeout,
SctpPeerDead,
SctpRemoteAbort,
SctpRemoteShutdown,
TransportStartFailed(String),
Unknown(String),
}Expand description
Describes why a PeerConnection was disconnected or closed.
Variants§
LocalClose
Local side called close()
Dropped
PeerConnection was dropped without explicit close
IceFailed
ICE transport failed (connectivity check failures)
IceDisconnected
ICE transport disconnected (lost connectivity)
DtlsFailed
DTLS transport failed
DtlsClosed
DTLS transport closed
SctpHeartbeatTimeout
SCTP association closed due to heartbeat timeout (peer not responding to heartbeats)
SctpPeerDead
SCTP association closed because peer appears dead (consecutive heartbeat failures during RTO backoff)
SctpRemoteAbort
Remote peer sent SCTP ABORT
SctpRemoteShutdown
Remote peer sent SCTP SHUTDOWN
TransportStartFailed(String)
SCTP transport start failed
Unknown(String)
Unknown or unspecified reason
Trait Implementations§
Source§impl Clone for DisconnectReason
impl Clone for DisconnectReason
Source§fn clone(&self) -> DisconnectReason
fn clone(&self) -> DisconnectReason
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DisconnectReason
impl Debug for DisconnectReason
Source§impl Display for DisconnectReason
impl Display for DisconnectReason
Source§impl PartialEq for DisconnectReason
impl PartialEq for DisconnectReason
impl Eq for DisconnectReason
impl StructuralPartialEq for DisconnectReason
Auto Trait Implementations§
impl Freeze for DisconnectReason
impl RefUnwindSafe for DisconnectReason
impl Send for DisconnectReason
impl Sync for DisconnectReason
impl Unpin for DisconnectReason
impl UnsafeUnpin for DisconnectReason
impl UnwindSafe for DisconnectReason
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