Trait Timeout

Source
pub trait Timeout: Sized {
    // Required method
    fn timeout<S>(self, t: Duration, operation: S) -> Timed<Self> 
       where S: Into<String>;
}
Expand description

Timeout can be used to add a timeout to any future emitted by mtop.

Required Methods§

Source

fn timeout<S>(self, t: Duration, operation: S) -> Timed<Self>
where S: Into<String>,

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§

Source§

impl<F, V> Timeout for F
where F: Future<Output = Result<V, MtopError>>,