collectd-plugin 0.16.0

Provides ergonomic API ontop of collectd's C interface and macro for defining plugins easier
Documentation
use std::cell::RefCell;
use std::error;
use collectd_plugin::Plugin;

#[derive(Debug, Default)]
pub struct MyPlugin {
    name: RefCell<String>,
}

impl Plugin for MyPlugin {
    fn read_values(&self) -> Result<(), Box<dyn error::Error>> {
        let mut n = self.name.borrow_mut();
        n.pop();
        Ok(())
    }
}

fn main() {
}