rabble 0.4.1

A library for creating location transparent actor based systems
Documentation
use std::fmt::{self, Debug, Formatter};
use hdrsample;

#[derive(Debug, Clone, Eq, PartialEq, Serialize, Deserialize)]
pub enum TimeUnit {
    Seconds,
    Milliseconds,
    Microseconds,
    Nanoseconds
}

#[derive(Clone, PartialEq, Serialize, Deserialize)]
pub struct Histogram {
    pub unit: TimeUnit,
    pub histogram: hdrsample::Histogram<u64>
}

impl Debug for Histogram {
    fn fmt(&self, f: &mut Formatter) -> fmt::Result {
        write!(f, "Histogram ({:?})", self.unit)
    }
}