Trait mtop_client::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>,

Object Safety§

This trait is not object safe.

Implementors§

source§

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