pub struct TcpListener<L> { /* private fields */ }Implementations§
Source§impl<L> TcpListener<L>
impl<L> TcpListener<L>
pub fn new( tcp_listener: TcpListener, listen_notify: L, event_loop: &Loop, ) -> Self
pub fn ip4(
event_loop: &mut Loop,
host: &str,
listen_notify: L,
) -> Result<(Stream<ListenerMsg>, SocketAddr)>where
L: TcpListenNotify + 'static,
Trait Implementations§
Source§impl<L> Handler for TcpListener<L>where
L: TcpListenNotify,
impl<L> Handler for TcpListener<L>where
L: TcpListenNotify,
Auto Trait Implementations§
impl<L> Freeze for TcpListener<L>where
L: Freeze,
impl<L> !RefUnwindSafe for TcpListener<L>
impl<L> !Send for TcpListener<L>
impl<L> !Sync for TcpListener<L>
impl<L> Unpin for TcpListener<L>where
L: Unpin,
impl<L> !UnwindSafe for TcpListener<L>
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