Trait CloseStream

Source
pub trait CloseStream: ConnectionState {
    // Provided methods
    fn handle_connection_error_on_stream(
        &mut self,
        internal_error: InternalConnectionError,
    ) -> StreamError { ... }
    fn handle_quic_stream_error(
        &self,
        error: StreamErrorIncoming,
    ) -> StreamError { ... }
    fn check_peer_connection_closing(&self) -> Option<StreamError> { ... }
}
Available on crate feature h3 only.
Expand description

This trait is implemented for all types which can close a stream

Provided Methods§

Source

fn handle_connection_error_on_stream( &mut self, internal_error: InternalConnectionError, ) -> StreamError

Handles a connection error on a stream

Source

fn handle_quic_stream_error(&self, error: StreamErrorIncoming) -> StreamError

Handles a incoming stream error from the quic layer

Source

fn check_peer_connection_closing(&self) -> Option<StreamError>

Checks if the peer connection is closing an if it is allowed to send a request / server push

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<H> CloseStream for DatagramReader<H>
where H: RecvDatagram,

Implementors§

Source§

impl<C, B> CloseStream for RequestResolver<C, B>
where C: Connection<B>, B: Buf,

Source§

impl<S, B> CloseStream for compio_quic::h3::client::RequestStream<S, B>

Source§

impl<S, B> CloseStream for compio_quic::h3::connection::RequestStream<S, B>

Source§

impl<S, B> CloseStream for compio_quic::h3::server::RequestStream<S, B>

Source§

impl<T, B> CloseStream for SendRequest<T, B>
where T: OpenStreams<B>, B: Buf,