pub trait BufferCloseCallback {
// Required method
fn callback(
&mut self,
weechat: &Weechat,
buffer: &Buffer<'_>,
) -> Result<(), ()>;
}
Expand description
Trait for the buffer close callback
A blanket implementation for pure FnMut
functions exists, if data needs to
be passed to the callback implement this over your struct.