kvarn::encryption

Enum Encryption

source
pub enum Encryption {
    TcpTls(Box<TlsStream<TcpStream>>),
    Tcp(TcpStream),
}
Expand description

An encrypted stream.

For now only supports TcpStreams, which will change when Kvarn gets HTTP/3 support.

Variants§

§

TcpTls(Box<TlsStream<TcpStream>>)

Available on crate feature https only.

A TLS encrypted TCP stream.

§

Tcp(TcpStream)

A unencrypted TCP stream for use with non-secure HTTP.

Implementations§