Trait salvo_core::proto::quic::BidiStream

source ·
pub trait BidiStream<B>: SendStream<B> + RecvStream
where B: Buf,
{ type SendStream: SendStream<B>; type RecvStream: RecvStream; // Required method fn split(self) -> (Self::SendStream, Self::RecvStream); }
Available on crate feature quinn only.
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.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<B> BidiStream<B> for salvo_http3::http3_quinn::BidiStream<B>
where B: Buf,

source§

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

source§

impl<S, B> BidiStream<B> for BufRecvStream<S, B>
where B: Buf, S: BidiStream<B>,