Struct syncbox::Delay [] [src]

pub struct Delay<T>(pub T, pub Duration);

Associate a delay with a value.

Methods

impl<T> Delay<T>

fn unwrap(self) -> T

Moves the value out of the Delay<T>.

Trait Implementations

impl<T> Delayed for Delay<T>

fn delay(&self) -> Duration

impl<T> Deref for Delay<T>

type Target = T

fn deref(&self) -> &T

impl<T> DerefMut for Delay<T>

fn deref_mut(&mut self) -> &mut T

Derived Implementations

impl<T: Debug> Debug for Delay<T>

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl<T: PartialOrd> PartialOrd for Delay<T>

fn partial_cmp(&self, __arg_0: &Delay<T>) -> Option<Ordering>

fn lt(&self, __arg_0: &Delay<T>) -> bool

fn le(&self, __arg_0: &Delay<T>) -> bool

fn gt(&self, __arg_0: &Delay<T>) -> bool

fn ge(&self, __arg_0: &Delay<T>) -> bool

impl<T: Ord> Ord for Delay<T>

fn cmp(&self, __arg_0: &Delay<T>) -> Ordering

impl<T: PartialEq> PartialEq for Delay<T>

fn eq(&self, __arg_0: &Delay<T>) -> bool

fn ne(&self, __arg_0: &Delay<T>) -> bool

impl<T: Eq> Eq for Delay<T>