Struct device_connector::element::ElementBank
source · pub struct ElementBank { /* private fields */ }Expand description
Holds buildable element list.
Implementations§
source§impl ElementBank
impl ElementBank
sourcepub fn append_from_buildable<E: ElementBuildable + 'static>(
&mut self
) -> Result<(), ElementAppendError>
pub fn append_from_buildable<E: ElementBuildable + 'static>( &mut self ) -> Result<(), ElementAppendError>
Register buildable element.
sourcepub fn pre_build(
&self,
name: &str,
conf: ElementConf
) -> Result<ElementPreBuild, ElementBuildError>
pub fn pre_build( &self, name: &str, conf: ElementConf ) -> Result<ElementPreBuild, ElementBuildError>
get pre build element by name and config.
sourcepub fn acceptable_msg_types(
&self,
name: &str
) -> Result<Vec<Vec<MsgType>>, UnknownElementError>
pub fn acceptable_msg_types( &self, name: &str ) -> Result<Vec<Vec<MsgType>>, UnknownElementError>
Get acceptable message types.