pub enum HTTP1ServerEvent<READER, WRITER>where
READER: AsyncReadExt + Send + Unpin + 'static,
WRITER: AsyncWriteExt + Send + Unpin + 'static,{
Request(HTTP1Request),
ProtocolUpgrade(HTTP1Request, HTTP1Response, (READER, WRITER)),
}Expand description
A service downstream from HTTP1ServerLayer will receive these structs
Variants§
Request(HTTP1Request)
ProtocolUpgrade(HTTP1Request, HTTP1Response, (READER, WRITER))
A protocol upgrade including the original request and subsequent response
Auto Trait Implementations§
impl<READER, WRITER> !Freeze for HTTP1ServerEvent<READER, WRITER>
impl<READER, WRITER> RefUnwindSafe for HTTP1ServerEvent<READER, WRITER>where
READER: RefUnwindSafe,
WRITER: RefUnwindSafe,
impl<READER, WRITER> Send for HTTP1ServerEvent<READER, WRITER>
impl<READER, WRITER> Sync for HTTP1ServerEvent<READER, WRITER>
impl<READER, WRITER> Unpin for HTTP1ServerEvent<READER, WRITER>
impl<READER, WRITER> UnwindSafe for HTTP1ServerEvent<READER, WRITER>where
READER: UnwindSafe,
WRITER: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more