kvarn::websocket

Enum WSStream

source
pub enum WSStream<'a> {
    Http1(&'a Arc<Mutex<Encryption>>),
}
Available on crate feature websocket only.
Expand description

Variants of WebSocket streams.

Variants§

§

Http1(&'a Arc<Mutex<Encryption>>)

HTTP/1 version WebTransport was introduced in HTTP/3 and WebSocket support is sketch in HTTP/2, so this is unlikely to get more versions

Trait Implementations§

source§

impl<'a> AsyncRead for WSStream<'a>

source§

fn poll_read( self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &mut