HostWithStore

Trait HostWithStore 

Source
pub trait HostWithStore: HasData + Send {
    // Required methods
    fn wait_until<T>(
        accessor: &Accessor<T, Self>,
        when: Instant,
    ) -> impl Future<Output = Result<()>> + Send;
    fn wait_for<T>(
        accessor: &Accessor<T, Self>,
        how_long: Duration,
    ) -> impl Future<Output = Result<()>> + Send;
}
Available on crate feature p3 only.

Required Methods§

Source

fn wait_until<T>( accessor: &Accessor<T, Self>, when: Instant, ) -> impl Future<Output = Result<()>> + Send

Wait until the specified instant has occurred.

Source

fn wait_for<T>( accessor: &Accessor<T, Self>, how_long: Duration, ) -> impl Future<Output = Result<()>> + Send

Wait for the specified duration to elapse.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§