salvo_http3::connection

Trait ConnectionState

Source
pub trait ConnectionState {
    // Required method
    fn shared_state(&self) -> &SharedStateRef;

    // Provided method
    fn maybe_conn_err<E: Into<Error>>(&self, err: E) -> Error { ... }
}

Required Methods§

Source

fn shared_state(&self) -> &SharedStateRef

Provided Methods§

Source

fn maybe_conn_err<E: Into<Error>>(&self, err: E) -> Error

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.

Implementors§

Source§

impl<C, B> ConnectionState for Connection<C, B>
where C: Connection<B>, B: Buf,

Source§

impl<S, B> ConnectionState for salvo_http3::client::RequestStream<S, B>

Source§

impl<S, B> ConnectionState for salvo_http3::server::RequestStream<S, B>

Source§

impl<S, B> ConnectionState for salvo_http3::connection::RequestStream<S, B>

Source§

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