Struct monoio_http::h1::codec::ServerCodec
source · pub struct ServerCodec<IO: AsyncWriteRent> { /* private fields */ }
Implementations§
source§impl<IO: Split + AsyncReadRent + AsyncWriteRent> ServerCodec<IO>
impl<IO: Split + AsyncReadRent + AsyncWriteRent> ServerCodec<IO>
Trait Implementations§
source§impl<IO: AsyncWriteRent> FillPayload for ServerCodec<IO>where
RequestDecoder<OwnedReadHalf<IO>>: FillPayload,
impl<IO: AsyncWriteRent> FillPayload for ServerCodec<IO>where RequestDecoder<OwnedReadHalf<IO>>: FillPayload,
type Error = <GenericDecoder<OwnedReadHalf<IO>, GenericHeadDecoder<Request<Payload<Bytes, PayloadError>>, RequestHeadDecoder, ChannelWrapper>> as FillPayload>::Error
type FillPayloadFuture<'a> = <GenericDecoder<OwnedReadHalf<IO>, GenericHeadDecoder<Request<Payload<Bytes, PayloadError>>, RequestHeadDecoder, ChannelWrapper>> as FillPayload>::FillPayloadFuture<'a> where Self: 'a
fn fill_payload(&mut self) -> Self::FillPayloadFuture<'_>
source§impl<IO: AsyncWriteRent, R> Sink<R> for ServerCodec<IO>where
GenericEncoder<OwnedWriteHalf<IO>>: Sink<R>,
impl<IO: AsyncWriteRent, R> Sink<R> for ServerCodec<IO>where GenericEncoder<OwnedWriteHalf<IO>>: Sink<R>,
§type Error = <GenericEncoder<OwnedWriteHalf<IO>> as Sink<R>>::Error
type Error = <GenericEncoder<OwnedWriteHalf<IO>> as Sink<R>>::Error
The type of value produced by the sink when an error occurs.
§type SendFuture<'a> = <GenericEncoder<OwnedWriteHalf<IO>> as Sink<R>>::SendFuture<'a>
where
Self: 'a,
R: 'a
type SendFuture<'a> = <GenericEncoder<OwnedWriteHalf<IO>> as Sink<R>>::SendFuture<'a> where Self: 'a, R: 'a
Future representing the send result.
§type FlushFuture<'a> = <GenericEncoder<OwnedWriteHalf<IO>> as Sink<R>>::FlushFuture<'a>
where
Self: 'a
type FlushFuture<'a> = <GenericEncoder<OwnedWriteHalf<IO>> as Sink<R>>::FlushFuture<'a> where Self: 'a
Future representing the flush result.
§type CloseFuture<'a> = <GenericEncoder<OwnedWriteHalf<IO>> as Sink<R>>::CloseFuture<'a>
where
Self: 'a
type CloseFuture<'a> = <GenericEncoder<OwnedWriteHalf<IO>> as Sink<R>>::CloseFuture<'a> where Self: 'a
Future representing the close result.
source§fn send<'a>(&'a mut self, item: R) -> Self::SendFuture<'a>where
R: 'a,
fn send<'a>(&'a mut self, item: R) -> Self::SendFuture<'a>where R: 'a,
Send item.
source§fn flush(&mut self) -> Self::FlushFuture<'_>
fn flush(&mut self) -> Self::FlushFuture<'_>
Flush any remaining output from this sink.
source§fn close(&mut self) -> Self::CloseFuture<'_>
fn close(&mut self) -> Self::CloseFuture<'_>
Flush any remaining output and close this sink, if necessary.
source§impl<IO: AsyncWriteRent> Stream for ServerCodec<IO>where
RequestDecoder<OwnedReadHalf<IO>>: Stream,
impl<IO: AsyncWriteRent> Stream for ServerCodec<IO>where RequestDecoder<OwnedReadHalf<IO>>: Stream,
§type Item = <GenericDecoder<OwnedReadHalf<IO>, GenericHeadDecoder<Request<Payload<Bytes, PayloadError>>, RequestHeadDecoder, ChannelWrapper>> as Stream>::Item
type Item = <GenericDecoder<OwnedReadHalf<IO>, GenericHeadDecoder<Request<Payload<Bytes, PayloadError>>, RequestHeadDecoder, ChannelWrapper>> as Stream>::Item
Values yielded by the stream.
§type NextFuture<'a> = <GenericDecoder<OwnedReadHalf<IO>, GenericHeadDecoder<Request<Payload<Bytes, PayloadError>>, RequestHeadDecoder, ChannelWrapper>> as Stream>::NextFuture<'a>
where
Self: 'a
type NextFuture<'a> = <GenericDecoder<OwnedReadHalf<IO>, GenericHeadDecoder<Request<Payload<Bytes, PayloadError>>, RequestHeadDecoder, ChannelWrapper>> as Stream>::NextFuture<'a> where Self: 'a
Future representing the next value of the stream.
source§fn next(&mut self) -> Self::NextFuture<'_>
fn next(&mut self) -> Self::NextFuture<'_>
Attempt to pull out the next value of this stream, registering the
current task for wakeup if the value is not yet available, and returning
None
if the stream is exhausted.Auto Trait Implementations§
impl<IO> !RefUnwindSafe for ServerCodec<IO>
impl<IO> !Send for ServerCodec<IO>
impl<IO> !Sync for ServerCodec<IO>
impl<IO> Unpin for ServerCodec<IO>
impl<IO> !UnwindSafe for ServerCodec<IO>
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T, A> SinkExt<T> for Awhere
A: Sink<T>,
impl<T, A> SinkExt<T> for Awhere A: Sink<T>,
§type SendFlushFuture<'a> = impl Future<Output = Result<(), <A as Sink<T>>::Error>> + 'a
where
A: 'a,
T: 'a
type SendFlushFuture<'a> = impl Future<Output = Result<(), <A as Sink<T>>::Error>> + 'a where A: 'a, T: 'a
SendFlushFuture.
source§fn send_and_flush<'a>(
&'a mut self,
item: T
) -> <A as SinkExt<T>>::SendFlushFuture<'a>where
T: 'a,
fn send_and_flush<'a>( &'a mut self, item: T ) -> <A as SinkExt<T>>::SendFlushFuture<'a>where T: 'a,
Send and flush.
source§impl<T> StreamExt for Twhere
T: Stream,
impl<T> StreamExt for Twhere T: Stream,
source§fn map<T, F>(self, f: F) -> Map<Self, F>where
F: FnMut(Self::Item) -> T,
Self: Sized,
fn map<T, F>(self, f: F) -> Map<Self, F>where F: FnMut(Self::Item) -> T, Self: Sized,
Maps a stream to a stream of its items.