pub struct Handle<T, U> { /* private fields */ }
Expand description
Handle to the Mock
.
Implementations§
Source§impl<T, U> Handle<T, U>
impl<T, U> Handle<T, U>
Sourcepub fn poll_request(&mut self) -> Poll<Option<(T, SendResponse<U>)>>
pub fn poll_request(&mut self) -> Poll<Option<(T, SendResponse<U>)>>
Asynchronously gets the next request
Sourcepub async fn next_request(&mut self) -> Option<(T, SendResponse<U>)>
pub async fn next_request(&mut self) -> Option<(T, SendResponse<U>)>
Gets the next request.
Trait Implementations§
Auto Trait Implementations§
impl<T, U> Freeze for Handle<T, U>
impl<T, U> RefUnwindSafe for Handle<T, U>
impl<T, U> Send for Handle<T, U>
impl<T, U> Sync for Handle<T, U>
impl<T, U> Unpin for Handle<T, U>
impl<T, U> UnwindSafe for Handle<T, U>
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