pub struct CoIOListener { /* private fields */ }
Expand description
Uses CoIO main loop to poll incoming connections from wrapped socket listener
Implementations§
Source§impl CoIOListener
impl CoIOListener
Sourcepub fn accept(&self) -> Result<CoIOStream, Error>
pub fn accept(&self) -> Result<CoIOStream, Error>
Accept a new incoming connection from this listener.
pub fn inner_listener(&mut self) -> &mut TcpListener
Trait Implementations§
Source§impl TryFrom<TcpListener> for CoIOListener
impl TryFrom<TcpListener> for CoIOListener
Auto Trait Implementations§
impl Freeze for CoIOListener
impl RefUnwindSafe for CoIOListener
impl Send for CoIOListener
impl Sync for CoIOListener
impl Unpin for CoIOListener
impl UnwindSafe for CoIOListener
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