A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.rs/cap-std/latest/cap_std/net/struct.Pool.html below:

Pool in cap_std::net - Rust

pub struct Pool {  }

Available on non-WASI only.

Expand description

A pool of network addresses.

This does not directly correspond to anything in std, however its methods correspond to the several functions in std::net.

Pool implements Clone, which creates new independent entities that carry the full authority of the originals. This means that in a borrow of a Pool, the scope of the authority is not necessarily limited to the scope of the borrow.

Similarly, the cap_net_ext::PoolExt class allows creating “binder” and “connecter” objects which represent capabilities to bind and connect to addresses.

Source§ Source

Construct a new empty pool.

Source

Add addresses to the pool.

This function allows ambient access to any IP address.

Source

Add a specific net::SocketAddr to the pool.

§Ambient Authority

This function allows ambient access to any IP address.

Source

Add a range of network addresses, accepting any port, to the pool.

Unlike insert_ip_net, this function grants access to any requested port.

§Ambient Authority

This function allows ambient access to any IP address.

Source

Add a range of network addresses, accepting a range of ports, to the pool.

This grants access to the port range starting at ports_start and, if ports_end is provided, ending before ports_end.

§Ambient Authority

This function allows ambient access to any IP address.

Source

Add a range of network addresses with a specific port to the pool.

§Ambient Authority

This function allows ambient access to any IP address.

Source Source Source Source Source

Sends data on the socket to the given address. On success, returns the number of bytes written.

This corresponds to std::net::UdpSocket::send_to.

Source

Connects this UDP socket to a remote address, allowing the send and recv syscalls to be used to send data and also applies filters to only receive data from the specified address.

This corresponds to std::net::UdpSocket::connect.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4