pub enum SocketEvent {
Packet(Packet),
Connect(SocketAddr),
Timeout(SocketAddr),
Disconnect(SocketAddr),
}Expand description
Events that can occur and are pushed through the event_receiver. These are user-facing events emitted by the socket/connection manager.
Variants§
Packet(Packet)
A packet was received from a client.
Connect(SocketAddr)
A new connection has been established.
Timeout(SocketAddr)
The client has been idling longer than the idle_connection_timeout.
Disconnect(SocketAddr)
The established connection to a client has timed out.
Trait Implementations§
Source§impl Debug for SocketEvent
impl Debug for SocketEvent
Source§impl PartialEq for SocketEvent
impl PartialEq for SocketEvent
Source§impl SessionEventAddress for SocketEvent
Required by SessionManager to properly handle session event.
impl SessionEventAddress for SocketEvent
Required by SessionManager to properly handle session event.
Source§fn address(&self) -> SocketAddr
fn address(&self) -> SocketAddr
Returns event address.
impl StructuralPartialEq for SocketEvent
Auto Trait Implementations§
impl Freeze for SocketEvent
impl RefUnwindSafe for SocketEvent
impl Send for SocketEvent
impl Sync for SocketEvent
impl Unpin for SocketEvent
impl UnwindSafe for SocketEvent
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