Struct salvo::TcpListener [−][src]
pub struct TcpListener { /* fields omitted */ }
Expand description
TcpListener
Implementations
Bind to socket address.
Try to bind to socket address.
Trait Implementations
type Conn = AddrStream
type Conn = AddrStream
The connection type that can be accepted.
pub fn poll_accept(
self: Pin<&mut TcpListener>,
cx: &mut Context<'_>
) -> Poll<Option<Result<<TcpListener as Accept>::Conn, <TcpListener as Accept>::Error>>>
pub fn poll_accept(
self: Pin<&mut TcpListener>,
cx: &mut Context<'_>
) -> Poll<Option<Result<<TcpListener as Accept>::Conn, <TcpListener as Accept>::Error>>>
Poll to accept the next connection.
Join current Listener with the other.
Auto Trait Implementations
impl !RefUnwindSafe for TcpListener
impl Send for TcpListener
impl Sync for TcpListener
impl Unpin for TcpListener
impl !UnwindSafe for TcpListener
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more