qdrant_client::config

Trait AsTimeout

source
pub trait AsTimeout {
    // Required method
    fn timeout(self) -> Duration;
}
Expand description

Set a timeout from various types

For example:

config
    .timeout(10)
    .timeout(Duration::from_secs(10));

Required Methods§

Implementations on Foreign Types§

source§

impl AsTimeout for u64

source§

impl AsTimeout for Duration

Implementors§