pub(crate) struct Client<B> {
callback: Option<Callback<Request<B>, Response<Body>>>,
rx: Receiver<Request<B>, Response<Body>>,
rx_closed: bool,
}
Fields§
§callback: Option<Callback<Request<B>, Response<Body>>>
§rx: Receiver<Request<B>, Response<Body>>
§rx_closed: bool
Implementations§
Trait Implementations§
source§impl<B> Dispatch for Client<B>where
B: HttpBody,
impl<B> Dispatch for Client<B>where
B: HttpBody,
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), Self::PollError>>>
fn recv_msg(&mut self, msg: Result<(Self::RecvItem, Body)>) -> 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