pub enum ListenerEvent<S: NetSession> {
Accepted(S::Connection),
Failure(Error),
}Available on crate feature
io-reactor only.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.
Trait Implementations§
Source§impl<S: Debug + NetSession> Debug for ListenerEvent<S>where
S::Connection: Debug,
impl<S: Debug + NetSession> Debug for ListenerEvent<S>where
S::Connection: Debug,
Auto Trait Implementations§
impl<S> Freeze for ListenerEvent<S>
impl<S> !RefUnwindSafe for ListenerEvent<S>
impl<S> Send for ListenerEvent<S>
impl<S> Sync for ListenerEvent<S>
impl<S> Unpin for ListenerEvent<S>
impl<S> !UnwindSafe for ListenerEvent<S>
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