Trait InterfaceConfig

Source
pub trait InterfaceConfig: Debug + Deserialize {
    // Required method
    fn to_interface(&self) -> Result<Box<dyn Interface + Send>, Error>;
}
Expand description

A data structure that can be deserialized and converted into an Interface.

Required Methods§

Source

fn to_interface(&self) -> Result<Box<dyn Interface + Send>, Error>

Convert this InterfaceConfig into an Interface.

Implementors§