mongodb 0.9.1

The official MongoDB driver for Rust (currently in alpha)
Documentation
1
2
3
4
5
6
7
8
mod rtt;
mod sdam;

use std::time::Duration;

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