pub struct Incoming { /* private fields */ }Implementations§
Source§impl Incoming
impl Incoming
pub fn bind(addr: SocketAddr) -> Result<Self>
pub fn new(listener: TcpListener) -> Self
Trait Implementations§
Source§impl Accept for Incoming
impl Accept for Incoming
Source§type Conn = AddrStream
type Conn = AddrStream
The connection type that can be accepted.
impl Unpin for Incoming
Auto Trait Implementations§
impl !Freeze for Incoming
impl !RefUnwindSafe for Incoming
impl Send for Incoming
impl Sync for Incoming
impl !UnwindSafe for Incoming
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