2019-01-31 10:01:47 +00:00
|
|
|
pub use std::collections::HashMap;
|
2019-01-30 15:26:05 +00:00
|
|
|
|
2019-02-06 16:42:32 +00:00
|
|
|
use crate::message::*;
|
|
|
|
|
2019-01-30 15:26:05 +00:00
|
|
|
pub trait Output {
|
2019-02-23 17:45:43 +00:00
|
|
|
fn new(config: serde_yaml::Value) -> Result<Self, Box<dyn std::error::Error>>
|
2019-01-31 10:01:47 +00:00
|
|
|
where
|
|
|
|
Self: Sized;
|
|
|
|
fn process_message(&mut self, message: Message);
|
|
|
|
}
|