pub struct ClientCodec<IO: AsyncWriteRent> { /* private fields */ }
Implementations§
Source§impl<IO: Split + AsyncWriteRent> ClientCodec<IO>
impl<IO: Split + AsyncWriteRent> ClientCodec<IO>
pub fn new(io: IO) -> Self
pub fn new_with_timeout(io: IO, timeout: Duration) -> Self
Trait Implementations§
Source§impl<IO: AsyncWriteRent> BorrowFramedRead for ClientCodec<IO>
impl<IO: AsyncWriteRent> BorrowFramedRead for ClientCodec<IO>
type IO = <IoOwnedDecoder<OwnedReadHalf<IO>, GenericHeadDecoder<Response<Payload>, ResponseHeadDecoder, DirectWrapper>> as BorrowFramedRead>::IO
type Codec = <IoOwnedDecoder<OwnedReadHalf<IO>, GenericHeadDecoder<Response<Payload>, 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>
impl<IO: AsyncWriteRent, R> Sink<R> for ClientCodec<IO>
Source§impl<IO: AsyncReadRent + AsyncWriteRent> Stream for ClientCodec<IO>
impl<IO: AsyncReadRent + AsyncWriteRent> Stream for ClientCodec<IO>
Source§type Item = <IoOwnedDecoder<OwnedReadHalf<IO>, GenericHeadDecoder<Response<Payload>, ResponseHeadDecoder, DirectWrapper>> as Stream>::Item
type Item = <IoOwnedDecoder<OwnedReadHalf<IO>, GenericHeadDecoder<Response<Payload>, ResponseHeadDecoder, DirectWrapper>> as Stream>::Item
Values yielded by the stream.
Auto Trait Implementations§
impl<IO> Freeze for ClientCodec<IO>
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