hyper::rt

Trait 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§