capella 0.1.3

An asynchronous StatsD clone
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! The console module is used mostly for testing purposes.
#![deny(missing_docs)]

use backend::Backend;

use cache::CapellaCache;

/// Console is a unit struct that prints stats to the terminal.
#[derive(Default)]
pub struct Console;

impl Backend for Console {
    fn purge_metrics(&self, cache: &mut CapellaCache) {
        println!("{:?}", cache);
        cache.reset();
    }
}