pub enum ConnectionKind {
Connected(Endpoint),
ConnectRetried(Endpoint),
ConnectFailed(Endpoint),
Accepted(Endpoint),
AcceptFailed,
Disconnected(Endpoint),
Listening(Endpoint),
ListenFailed(Endpoint),
}Expand description
Wire-level connection events.
Variants§
Connected(Endpoint)
ConnectRetried(Endpoint)
ConnectFailed(Endpoint)
Accepted(Endpoint)
AcceptFailed
Disconnected(Endpoint)
Listening(Endpoint)
ListenFailed(Endpoint)
Implementations§
Source§impl ConnectionKind
impl ConnectionKind
pub(super) fn get_endpoint(&self) -> Option<&Endpoint>
pub(super) fn variant_name(&self) -> &'static str
Trait Implementations§
Source§impl Clone for ConnectionKind
impl Clone for ConnectionKind
Source§fn clone(&self) -> ConnectionKind
fn clone(&self) -> ConnectionKind
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 ConnectionKind
impl Debug for ConnectionKind
Source§impl From<ConnectionKind> for ConnectionEvent
impl From<ConnectionKind> for ConnectionEvent
Source§fn from(event: ConnectionKind) -> Self
fn from(event: ConnectionKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConnectionKind
impl RefUnwindSafe for ConnectionKind
impl Send for ConnectionKind
impl Sync for ConnectionKind
impl Unpin for ConnectionKind
impl UnsafeUnpin for ConnectionKind
impl UnwindSafe for ConnectionKind
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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