pub struct MockSender { /* private fields */ }Available on crate features
client and mocks only.Expand description
A minimal protocol sender for testing purposes.
Implementations§
Source§impl MockSender
impl MockSender
Trait Implementations§
Source§impl Clone for MockSender
impl Clone for MockSender
Source§fn clone(&self) -> MockSender
fn clone(&self) -> MockSender
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Connection<Body> for MockSender
impl Connection<Body> for MockSender
Source§type Error = MockProtocolError
type Error = MockProtocolError
The error type for this connection
Source§type Future = Ready<Result<Response<Body>, <MockSender as Connection<Body>>::Error>>
type Future = Ready<Result<Response<Body>, <MockSender as Connection<Body>>::Error>>
The future type returned by this service
Source§fn send_request(&mut self, request: Request<Body>) -> Self::Future
fn send_request(&mut self, request: Request<Body>) -> Self::Future
Send a request to the remote server and return the response.
Source§impl Debug for MockSender
impl Debug for MockSender
Source§impl Default for MockSender
impl Default for MockSender
Source§impl PoolableConnection<Body> for MockSender
impl PoolableConnection<Body> for MockSender
Auto Trait Implementations§
impl Freeze for MockSender
impl RefUnwindSafe for MockSender
impl Send for MockSender
impl Sync for MockSender
impl Unpin for MockSender
impl UnwindSafe for MockSender
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, B> ConnectionExt<B> for Twhere
T: Connection<B>,
impl<T, B> ConnectionExt<B> for Twhere
T: Connection<B>,
Source§fn when_ready(&mut self) -> WhenReady<'_, Self, B> ⓘ
fn when_ready(&mut self) -> WhenReady<'_, Self, B> ⓘ
Available on crate feature
client only.Future which resolves when the connection is ready to accept a new request.
Source§impl<R> FirstAddrExt for R
impl<R> FirstAddrExt for R
Source§fn first_addr(self) -> FirstAddrResolver<Self>where
Self: Sized,
fn first_addr(self) -> FirstAddrResolver<Self>where
Self: Sized,
Available on crate feature
client only.Convert this resolver into a
FirstAddrResolver. Read more