pub struct UnitTestRequest { /* private fields */ }Expand description
A handle to an in-flight request being processed by the policy.
Use poll() to advance the request through the policy lifecycle.
Implementations§
Source§impl UnitTestRequest
impl UnitTestRequest
Sourcepub fn poll(&mut self) -> Poll<UnitHttpResponse>
pub fn poll(&mut self) -> Poll<UnitHttpResponse>
Advances the request processing and returns the current state.
Returns Poll::Ready(response) when the request is complete,
or Poll::Pending if more processing is needed.
Trait Implementations§
Source§impl Clone for UnitTestRequest
impl Clone for UnitTestRequest
Source§fn clone(&self) -> UnitTestRequest
fn clone(&self) -> UnitTestRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for UnitTestRequest
impl !RefUnwindSafe for UnitTestRequest
impl !Send for UnitTestRequest
impl !Sync for UnitTestRequest
impl Unpin for UnitTestRequest
impl UnsafeUnpin for UnitTestRequest
impl !UnwindSafe for UnitTestRequest
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