RecvStream

Trait RecvStream 

Source
pub trait RecvStream:
    AsyncRead
    + Send
    + Unpin
    + 'static {
    // Required method
    fn stop(&mut self, code: u32);
}
Expand description

Abstraction over a QUIC receive stream.

Implementations must support async reading and early termination.

Required Methods§

Source

fn stop(&mut self, code: u32)

Stops reading from the stream, signaling to the peer that no more data will be read.

Implementors§