use std::cell::RefCell; use std::error; use collectd_plugin::Plugin; #[derive(Debug, Default)] pub struct MyPlugin { name: RefCell, } impl Plugin for MyPlugin { fn read_values(&self) -> Result<(), Box> { let mut n = self.name.borrow_mut(); n.pop(); Ok(()) } } fn main() { }