Struct monoio_http::h1::codec::ClientCodec
source · pub struct ClientCodec<IO: AsyncWriteRent> { /* private fields */ }
Implementations§
source§impl<IO: Split + AsyncReadRent + AsyncWriteRent> ClientCodec<IO>
impl<IO: Split + AsyncReadRent + AsyncWriteRent> ClientCodec<IO>
Trait Implementations§
source§impl<IO: AsyncWriteRent> BorrowFramedRead for ClientCodec<IO>where
ClientResponseDecoder<OwnedReadHalf<IO>>: BorrowFramedRead,
impl<IO: AsyncWriteRent> BorrowFramedRead for ClientCodec<IO>where ClientResponseDecoder<OwnedReadHalf<IO>>: BorrowFramedRead,
type IO = <IoOwnedDecoder<OwnedReadHalf<IO>, GenericHeadDecoder<Response<Payload<Bytes, PayloadError>>, ResponseHeadDecoder, DirectWrapper>> as BorrowFramedRead>::IO
type Codec = <IoOwnedDecoder<OwnedReadHalf<IO>, GenericHeadDecoder<Response<Payload<Bytes, PayloadError>>, ResponseHeadDecoder, DirectWrapper>> as BorrowFramedRead>::Codec
fn framed_mut(&mut self) -> &mut FramedRead<Self::IO, Self::Codec>
source§impl<IO: AsyncWriteRent, R> Sink<R> for ClientCodec<IO>where
GenericEncoder<OwnedWriteHalf<IO>>: Sink<R>,
impl<IO: AsyncWriteRent, 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> = <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: AsyncReadRent + AsyncWriteRent> Stream for ClientCodec<IO>where
ClientResponseDecoder<OwnedReadHalf<IO>>: Stream,
impl<IO: AsyncReadRent + AsyncWriteRent> Stream for ClientCodec<IO>where ClientResponseDecoder<OwnedReadHalf<IO>>: Stream,
§type Item = <IoOwnedDecoder<OwnedReadHalf<IO>, GenericHeadDecoder<Response<Payload<Bytes, PayloadError>>, ResponseHeadDecoder, DirectWrapper>> as Stream>::Item
type Item = <IoOwnedDecoder<OwnedReadHalf<IO>, GenericHeadDecoder<Response<Payload<Bytes, PayloadError>>, ResponseHeadDecoder, DirectWrapper>> as Stream>::Item
Values yielded by the stream.
§type NextFuture<'a> = <IoOwnedDecoder<OwnedReadHalf<IO>, GenericHeadDecoder<Response<Payload<Bytes, PayloadError>>, ResponseHeadDecoder, DirectWrapper>> as Stream>::NextFuture<'a>
where
Self: 'a
type NextFuture<'a> = <IoOwnedDecoder<OwnedReadHalf<IO>, GenericHeadDecoder<Response<Payload<Bytes, PayloadError>>, ResponseHeadDecoder, DirectWrapper>> 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 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<'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.