pub trait Configure {
// Required method
fn get_name(&self) -> String;
// Provided method
fn new<'a>(config: &'a str) -> Result<Self>
where Self: Sized + Deserialize<'a> { ... }
}Expand description
Configure trait for blocks.
Configuration is in toml format sent as a string so that each block sender can deserialise it in its own way.