pub trait WaitTimer: Cancel {
type TimePoint;
type Duration;
fn wait_at(&self, time: &Self::TimePoint) -> Result<()>;
fn async_wait_at<A, F, T>(a: A, time: &Self::TimePoint, callback: F, obj: &Strand<T>) where A: Fn(&T) -> &Self + Send, F: FnOnce(Strand<T>, Result<()>) + Send;
fn wait_for(&self, time: &Self::Duration) -> Result<()>;
fn async_wait_for<A, F, T>(a: A, time: &Self::Duration, callback: F, obj: &Strand<T>) where A: Fn(&T) -> &Self + Send, F: FnOnce(Strand<T>, Result<()>) + Send;
}
Associated Types
Required Methods
fn wait_at(&self, time: &Self::TimePoint) -> Result<()>
fn async_wait_at<A, F, T>(a: A, time: &Self::TimePoint, callback: F, obj: &Strand<T>) where A: Fn(&T) -> &Self + Send, F: FnOnce(Strand<T>, Result<()>) + Send
fn wait_for(&self, time: &Self::Duration) -> Result<()>
fn async_wait_for<A, F, T>(a: A, time: &Self::Duration, callback: F, obj: &Strand<T>) where A: Fn(&T) -> &Self + Send, F: FnOnce(Strand<T>, Result<()>) + Send
Implementors