pub enum ConnEvent {
Connected(Endpoint),
ConnectRetried(Endpoint),
ConnectFailed(Endpoint),
Accepted(Endpoint),
AcceptFailed,
Disconnected(Endpoint),
Listening(Endpoint),
ListenFailed(Endpoint),
}
Expand description
Defines connection-related events.
Variants§
Connected(Endpoint)
ConnectRetried(Endpoint)
ConnectFailed(Endpoint)
Accepted(Endpoint)
AcceptFailed
Disconnected(Endpoint)
Listening(Endpoint)
ListenFailed(Endpoint)
Implementations§
Source§impl ConnEvent
impl ConnEvent
pub(super) fn get_endpoint(&self) -> Option<&Endpoint>
pub(super) fn variant_name(&self) -> &'static str
Trait Implementations§
Source§impl From<ConnEvent> for ConnectionEvent
impl From<ConnEvent> for ConnectionEvent
Source§impl ToEventStruct for ConnEvent
impl ToEventStruct for ConnEvent
type EventStruct = ConnectionEvent
fn to_struct(self) -> Self::EventStruct
Auto Trait Implementations§
impl Freeze for ConnEvent
impl RefUnwindSafe for ConnEvent
impl Send for ConnEvent
impl Sync for ConnEvent
impl Unpin for ConnEvent
impl UnwindSafe for ConnEvent
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