Skip to main content

Ask

Trait Ask 

Source
pub trait Ask: Send + Sync {
    // Required method
    fn ask<'a>(
        &'a self,
        address: &'a str,
        wait: Duration,
    ) -> BoxFuture<'a, Outcome>;
}
Expand description

Asks an address once, giving it wait to answer.

Required Methods§

Source

fn ask<'a>(&'a self, address: &'a str, wait: Duration) -> BoxFuture<'a, Outcome>

What asking address once found, given wait to answer.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§