pub struct TcpListener(_);
Expand description

A TCP socket listening for connections.

This type is an async version of std::net::TcpListener.

Implementations

Creates a listener bound to the specified address.

See also std::net::TcpListener::bind.

Accepts a new connection from this listener.

See also std::net::TcpListener::accept.

Returns the local socket address of this listener.

See also std::net::TcpListener::local_addr.

Gets the value of the IP_TTL option on this socket.

See also std::net::TcpListener::ttl.

Sets the value of the IP_TTL option on this socket.

See also std::net::TcpListener::set_ttl.

Trait Implementations

Borrows the file descriptor. Read more
Extracts the raw file descriptor. Read more
Formats the value using the given formatter. Read more
Constructs a new instance of Self from the given raw file descriptor. Read more
Consumes this object, returning the raw underlying file descriptor. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.