kvarn_extensions::connection

Enum EstablishedConnection

source
pub enum EstablishedConnection {
    Tcp(TcpStream),
    Udp(UdpSocket),
    UnixSocket(UnixStream),
}
Available on crate feature connection only.

Variants§

§

Tcp(TcpStream)

§

Udp(UdpSocket)

§

UnixSocket(UnixStream)

Available on Unix only.

Implementations§

source§

impl EstablishedConnection

source

pub async fn request<'a, T: Debug>( &'a mut self, request: &Request<T>, body: &[u8], timeout: