pub struct Spawn<T> { /* private fields */ }
Expand description
Service spawned on a mock task
Implementations§
Source§impl<T> Spawn<T>
impl<T> Spawn<T>
Sourcepub fn waker_ref_count(&self) -> usize
pub fn waker_ref_count(&self) -> usize
Get how many futurs are holding onto the waker.
Sourcepub fn poll_ready<Request>(&mut self) -> Poll<Result<(), T::Error>>where
T: Service<Request>,
pub fn poll_ready<Request>(&mut self) -> Poll<Result<(), T::Error>>where
T: Service<Request>,
Poll this service ready.
Sourcepub fn call<Request>(&mut self, req: Request) -> T::Futurewhere
T: Service<Request>,
pub fn call<Request>(&mut self, req: Request) -> T::Futurewhere
T: Service<Request>,
Call the inner Service.
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Get the inner service.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Spawn<T>where
T: Freeze,
impl<T> RefUnwindSafe for Spawn<T>where
T: RefUnwindSafe,
impl<T> Send for Spawn<T>where
T: Send,
impl<T> Sync for Spawn<T>where
T: Sync,
impl<T> Unpin for Spawn<T>where
T: Unpin,
impl<T> UnwindSafe for Spawn<T>where
T: UnwindSafe,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)