Skip to main content

AsyncStream

Trait AsyncStream 

Source
pub trait AsyncStream:
    AsyncRead
    + AsyncWrite
    + Send
    + Unpin { }
Expand description

A bidirectional byte stream capable of carrying RPC messages.

This mirrors the transport cloudflared uses for its registration stream: a single full-duplex stream (QUIC stream or HTTP/2 request/response body).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> AsyncStream for T
where T: AsyncRead + AsyncWrite + Send + Unpin,