Struct monoio_http::h1::codec::ClientCodec
source · pub struct ClientCodec<IO> { /* private fields */ }
Implementations§
source§impl<IO> ClientCodec<IO>
impl<IO> ClientCodec<IO>
Trait Implementations§
source§impl<IO> FillPayload for ClientCodec<IO>where
ResponseDecoder<OwnedReadHalf<IO>>: FillPayload,
impl<IO> FillPayload for ClientCodec<IO>where ResponseDecoder<OwnedReadHalf<IO>>: FillPayload,
type Error = <GenericDecoder<OwnedReadHalf<IO>, GenericHeadDecoder<Response<Payload<Bytes, PayloadError>>, ResponseHeadDecoder>> as FillPayload>::Error
type FillPayloadFuture<'a> where Self: 'a = <GenericDecoder<OwnedReadHalf<IO>, GenericHeadDecoder<Response<Payload<Bytes, PayloadError>>, ResponseHeadDecoder>> as FillPayload>::FillPayloadFuture<'a>
fn fill_payload(&mut self) -> Self::FillPayloadFuture<'_>
source§impl<IO, R> Sink<R> for ClientCodec<IO>where
GenericEncoder<OwnedWriteHalf<IO>>: Sink<R>,
impl<IO, R> Sink<R> for ClientCodec<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>
where
Self: 'a,
R: 'a = <GenericEncoder<OwnedWriteHalf<IO>> as Sink<R>>::SendFuture<'a>
type SendFuture<'a> where Self: 'a, R: 'a = <GenericEncoder<OwnedWriteHalf<IO>> as Sink<R>>::SendFuture<'a>
Future representing the send result.
§type FlushFuture<'a>
where
Self: 'a = <GenericEncoder<OwnedWriteHalf<IO>> as Sink<R>>::FlushFuture<'a>
type FlushFuture<'a> where Self: 'a = <GenericEncoder<OwnedWriteHalf<IO>> as Sink<R>>::FlushFuture<'a>
Future representing the flush result.
§type CloseFuture<'a>
where
Self: 'a = <GenericEncoder<OwnedWriteHalf<IO>> as Sink<R>>::CloseFuture<'a>
type CloseFuture<'a> where Self: 'a = <GenericEncoder<OwnedWriteHalf<IO>> as Sink<R>>::CloseFuture<'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> Stream for ClientCodec<IO>where
ResponseDecoder<OwnedReadHalf<IO>>: Stream,
impl<IO> Stream for ClientCodec<IO>where ResponseDecoder<OwnedReadHalf<IO>>: Stream,
§type Item = <GenericDecoder<OwnedReadHalf<IO>, GenericHeadDecoder<Response<Payload<Bytes, PayloadError>>, ResponseHeadDecoder>> as Stream>::Item
type Item = <GenericDecoder<OwnedReadHalf<IO>, GenericHeadDecoder<Response<Payload<Bytes, PayloadError>>, ResponseHeadDecoder>> as Stream>::Item
Values yielded by the stream.
§type NextFuture<'a>
where
Self: 'a = <GenericDecoder<OwnedReadHalf<IO>, GenericHeadDecoder<Response<Payload<Bytes, PayloadError>>, ResponseHeadDecoder>> as Stream>::NextFuture<'a>
type NextFuture<'a> where Self: 'a = <GenericDecoder<OwnedReadHalf<IO>, GenericHeadDecoder<Response<Payload<Bytes, PayloadError>>, ResponseHeadDecoder>> as Stream>::NextFuture<'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 ClientCodec<IO>
impl<IO> !Send for ClientCodec<IO>
impl<IO> !Sync for ClientCodec<IO>
impl<IO> Unpin for ClientCodec<IO>
impl<IO> !UnwindSafe for ClientCodec<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 = impl Future<Output = Result<(), <A as Sink<T>>::Error>> + 'a
type SendFlushFuture = impl Future<Output = Result<(), <A as Sink<T>>::Error>> + '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.