Trait xwt_core::traits::Request

source ·
pub trait Request: Send {
    type Connection: Send;
    type OkError: Error + Send + Sync + 'static;
    type CloseError: Error + Send + Sync + 'static;

    // Required methods
    fn ok(
        self
    ) -> impl Future<Output = Result<Self::Connection, Self::OkError>> + Send;
    fn close(
        self,
        status: u16
    ) -> impl Future<Output = Result<(), Self::CloseError>> + Send;
}

Required Associated Types§

source

type Connection: Send

source

type OkError: Error + Send + Sync + 'static

source

type CloseError: Error + Send + Sync + 'static

Required Methods§

source

fn ok( self ) -> impl Future<Output = Result<Self::Connection, Self::OkError>> + Send

source

fn close( self, status: u16 ) -> impl Future<Output = Result<(), Self::CloseError>> + Send

Object Safety§

This trait is not object safe.

Implementors§