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§
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
Object Safety§
This trait is not object safe.