pub(crate) struct Client<B> {
callback: Option<Callback<Request<B>, Response<Incoming>>>,
rx: Receiver<Request<B>, Response<Incoming>>,
rx_closed: bool,
}
Fields§
§callback: Option<Callback<Request<B>, Response<Incoming>>>
§rx: Receiver<Request<B>, Response<Incoming>>
§rx_closed: bool
Implementations§
Trait Implementations§
Source§impl<B> Dispatch for Client<B>where
B: Body,
impl<B> Dispatch for Client<B>where
B: Body,
type PollItem = MessageHead<RequestLine>
type PollBody = B
type PollError = Infallible
type RecvItem = MessageHead<StatusCode>
fn poll_msg( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Option<Result<(Self::PollItem, Self::PollBody), Infallible>>>
fn recv_msg( &mut self, msg: Result<(Self::RecvItem, IncomingBody)>, ) -> Result<()>
fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), ()>>
fn should_poll(&self) -> bool
impl<'__pin, B> Unpin for Client<B>where
PinnedFieldsOf<__Origin<'__pin, B>>: Unpin,
Auto Trait Implementations§
impl<B> Freeze for Client<B>
impl<B> !RefUnwindSafe for Client<B>
impl<B> Send for Client<B>where
B: Send,
impl<B> Sync for Client<B>where
B: Send,
impl<B> !UnwindSafe for Client<B>
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