Enum netservices::resource::ListenerEvent
source · pub enum ListenerEvent<S: NetSession> {
Accepted(S::Connection),
Failure(Error),
}
Expand description
An event happening for a NetAccept
network listener and delivered to a
reactor::Handler
.
Variants§
Accepted(S::Connection)
A new incoming connection was accepted.
The connection is already upgraded to a NetSession
, however no I/O
events was read or wrote for it yet.
Failure(Error)
Listener accept
call has resulted in a I/O error from the OS.