capella 0.1.3

An asynchronous StatsD clone
1
2
3
4
5
6
7
8
9
10
11
12
//! The backend module defines the trait that a backend must implement in order
//! to be forwarded stats from capella.
#![deny(missing_docs)]

use cache::CapellaCache;

/// Backend defines a generic backend that can be forwarded metrics from capella.
pub trait Backend {
    /// Flush metrics accepts a `CapellaCache` type and forwards it to the backend that
    /// implements it.
    fn purge_metrics(&self, cache: &mut CapellaCache);
}