Expand description
Types used for networking (tokio implementation)
Re-exportsΒ§
use crate::impls;πuse crate::traits;πuse async_trait::async_trait;πuse tor_general_addr::unix;πuse futures::io::AsyncRead;πuse futures::io::AsyncWrite;πuse paste::paste;πuse tokio_util::compat::Compat;πuse tokio_util::compat::TokioAsyncReadCompatExt as _;πuse std::io::Result as IoResult;πuse std::net::SocketAddr;πuse std::pin::Pin;πuse std::task::Context;πuse std::task::Poll;π
MacrosΒ§
- stream_
impl π - Provide a set of network stream wrappers for a single stream type.
StructsΒ§
- Incoming
TcpStreams - Asynchronous stream that yields incoming connections from a Tcp Listener.
- Incoming
Unix Streams - Asynchronous stream that yields incoming connections from a Unix Listener.
- TcpListener
- Wrap a Tokio Tcp Listener to behave as a futures::io::TcpListener.
- TcpStream
- Wrapper for Tokioβs Tcp streams, that implements the standard AsyncRead and AsyncWrite.
- Tokio
TcpListener π - A TCP socket server, listening for connections.
- Tokio
TcpStream π - A TCP stream between a local and a remote socket.
- Tokio
UdpSocket π - A UDP socket.
- Tokio
Unix πListener - A Unix socket which can accept connections from other Unix sockets.
- Tokio
Unix πStream - A structure representing a connected Unix socket.
- UdpSocket
- Wrap a Tokio UdpSocket
- Unix
Listener - Wrap a Tokio Unix Listener to behave as a futures::io::TcpListener.
- Unix
Stream - Wrapper for Tokioβs Unix streams, that implements the standard AsyncRead and AsyncWrite.
FunctionsΒ§
- identity_
fn_ πsocketaddr - Wrapper for (not) converting std::net::SocketAddr to itself.
- try_
cvt_ πtokio_ unix_ addr - Try to convert a tokio
unix::SocketAddrinto a crate::SocketAddr.