Struct trillium_smol::TcpConnector [−][src]
pub struct TcpConnector;
Expand description
tcp connector for smol based on async_net::TcpStream
Trait Implementations
type Config = ClientConfig
type Config = ClientConfig
A type that can be used to configure this Connector. It will be passed into [Connector::connect
].
The async read + write type for this connector, often a TcpStream or TlSStream
A SocketAddr representation of the other side of this connection
Initiate a connection to the provided url, using the configuration. Read more
Spawn and detach a task on the runtime. Although this may seem unrelated to the purpose of a tcp connector, it is required as a workaround for the absence of async drop in order to enable keepalive connection pooling. TLS implementations that wrap a runtime implementation should call through to the inner spawn. Read more
Auto Trait Implementations
impl RefUnwindSafe for TcpConnector
impl Send for TcpConnector
impl Sync for TcpConnector
impl Unpin for TcpConnector
impl UnwindSafe for TcpConnector
Blanket Implementations
Mutably borrows from an owned value. Read more