Skip to main content

HostWithStore

Trait HostWithStore 

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

Required Methods§

Source

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

Wait until the specified mark has occurred.

Source

fn wait_for( 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".

Implementors§