mongodb 3.6.0

The official MongoDB driver for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
mod event;
mod rtt;
mod sdam;

use std::time::Duration;

pub use event::TestSdamEvent;

use crate::bson_util::round_clamp;

pub(crate) fn f64_ms_as_duration(f: f64) -> Duration {
    Duration::from_micros(round_clamp(f * 1000.0))
}