Skip to main content

BoxedBidiStream

Type Alias BoxedBidiStream 

Source
pub type BoxedBidiStream = Box<dyn QuicTransportBidi + Unpin + Send + Sync>;
Expand description

A type-erased QuicTransportBidi stream — Box<dyn QuicTransportBidi + Unpin + Send + Sync>.

Aliased Type§

pub struct BoxedBidiStream(/* private fields */);

Trait Implementations§

Source§

impl QuicTransportBidi for BoxedBidiStream

Source§

impl QuicTransportReceive for BoxedBidiStream

Source§

fn stop(&mut self, code: u64)

Stop a receive stream, signaling an error code to the peer.
Source§

impl QuicTransportSend for BoxedBidiStream

Source§

fn reset(&mut self, code: u64)

Close the send stream immediately with the provided error code.
Source§

impl Transport for BoxedBidiStream

Source§

fn set_linger(&mut self, linger: Option<Duration>) -> Result<()>

Sets the linger duration of this transport by setting the SO_LINGER option Read more
Source§

fn set_nodelay(&mut self, nodelay: bool) -> Result<()>

Sets the value of the TCP_NODELAY option on this transport. Read more
Source§

fn set_ip_ttl(&mut self, ttl: u32) -> Result<()>

Sets the value for the IP_TTL option on this transport. Read more
Source§

fn peer_addr(&self) -> Result<Option<SocketAddr>>

Returns the socket address of the remote peer of this transport. Read more
Source§

fn negotiated_alpn(&self) -> Option<Cow<'_, [u8]>>

The protocol negotiated via TLS ALPN with the peer, if any. Read more