Struct syncbox::Delay
[−]
[src]
pub struct Delay<T>(pub T, pub Duration);
Associate a delay with a value
Methods
impl<T> Delay<T>
[src]
fn unwrap(self) -> T
Trait Implementations
impl<T: Eq> Eq for Delay<T>
[src]
impl<T: PartialEq> PartialEq for Delay<T>
[src]
fn eq(&self, __arg_0: &Delay<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Delay<T>) -> bool
This method tests for !=
.
impl<T: Ord> Ord for Delay<T>
[src]
fn cmp(&self, __arg_0: &Delay<T>) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl<T: PartialOrd> PartialOrd for Delay<T>
[src]
fn partial_cmp(&self, __arg_0: &Delay<T>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Delay<T>) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Delay<T>) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Delay<T>) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Delay<T>) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<T: Debug> Debug for Delay<T>
[src]
impl<T> Delayed for Delay<T>
[src]
impl<T> Deref for Delay<T>
[src]
type Target = T
The resulting type after dereferencing
fn deref(&self) -> &T
The method called to dereference a value
impl<T> DerefMut for Delay<T>
[src]
fn deref_mut(&mut self) -> &mut T
The method called to mutably dereference a value