cap_async_std/net/mod.rs
1//! A capability-based network API modeled after [`async_std::net`].
2//!
3//! This corresponds to [`async_std::net`].
4//!
5//! Instead of [`async_std::net`]'s constructor methods which take an address
6//! to connect to, this crates has methods on [`Pool`] which operate on
7//! addresses which must be present in the pool.
8//!
9//! [`Pool`]: struct.Pool.html
10
11mod incoming;
12mod pool;
13mod tcp_listener;
14mod tcp_stream;
15mod udp_socket;
16
17pub use incoming::*;
18pub use pool::*;
19pub use tcp_listener::*;
20pub use tcp_stream::*;
21pub use udp_socket::*;
22
23// Re-export things from `async_std::net` that we can use as-is.
24pub use async_std::net::{
25 AddrParseError, IpAddr, Ipv4Addr, Ipv6Addr, Shutdown, SocketAddr, SocketAddrV4, SocketAddrV6,
26 ToSocketAddrs,
27};
28
29// TODO: re-export experimental Ipv6MulticastScope?