Skip to main content

BidiStream

Trait BidiStream 

Source
pub trait BidiStream<B: Buf>: SendStream<B> + RecvStream {
    type SendStream: SendStream<B>;
    type RecvStream: RecvStream;

    // Required method
    fn split(self) -> (Self::SendStream, Self::RecvStream);
}
Expand description

Optional trait to allow “splitting” a bidirectional stream into two sides.

Required Associated Types§

Source

type SendStream: SendStream<B>

The type for the send half.

Source

type RecvStream: RecvStream

The type for the receive half.

Required Methods§

Source

fn split(self) -> (Self::SendStream, Self::RecvStream)

Split this stream into two halves.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<B> BidiStream<B> for sec_http3::sec_http3_quinn::BidiStream<B>
where B: Buf,

Source§

impl<S, B> BidiStream<B> for sec_http3::webtransport::stream::BidiStream<S, B>
where S: BidiStream<B>, B: Buf,