Trait hyper::rt::Sleep

source ·
pub trait Sleep: Send + Sync + Future<Output = ()> { }
Expand description

A future returned by a Timer.

Implementations§

source§

impl dyn Sleep

This is a re-implementation of downcast methods from std::any::Any

source

pub fn is<T>(&self) -> bool
where T: Sleep + 'static,

Check whether the type is the same as T

source

pub fn downcast_mut_pin<T>(self: Pin<&mut Self>) -> Option<Pin<&mut T>>
where T: Sleep + 'static,

Downcast a pinned &mut Sleep object to its original type

Implementors§