Skip to main content

construct/config/
traits.rs

1/// The trait for describing a channel
2pub trait ChannelConfig {
3    /// human-readable name
4    fn name() -> &'static str;
5    /// short description
6    fn desc() -> &'static str;
7}
8
9// Maybe there should be a `&self` as parameter for custom channel/info or what...
10
11pub trait ConfigHandle {
12    fn name(&self) -> &'static str;
13    fn desc(&self) -> &'static str;
14}