Module general

Source
Expand description

Support for streams and listeners on general::SocketAddr.

Structs§

IncomingStreams
A stream of incoming connections on a general::Listener.
Listener
A listener returned by a NetStreamProvider<general::SocketAddr>.
Stream
A stream returned by a NetStreamProvider<GeneralizedAddr>
UnsupportedAddress
Tried to use a general::SocketAddr that tor-rtcompat didn’t understand.

Enums§

AddrParseError
An error encountered while attempting to parse a SocketAddr
SocketAddr
Any address that Arti can listen on or connect to.

Traits§

ReadAndWrite 🔒
Helper trait to allow us to create a type-erased stream.

Functions§

abstract_listener_on 🔒
Use provider to launch a NetStreamListener at address, and wrap that listener as a Listener.

Type Aliases§

StreamItem 🔒
The type of the result from an IncomingStreams.