Trait ComponentFactory

pub trait ComponentFactory: Send + Sync {
    // Required methods
    fn create_memory_component(
        &self,
    ) -> Result<Box<dyn MemoryComponent>, NerveError>;
    fn create_thread_component(
        &self,
    ) -> Result<Box<dyn ThreadComponent>, NerveError>;
    fn create_node_component(
        &self,
    ) -> Result<Box<dyn NodeComponent>, NerveError>;
    fn create_communication_component(
        &self,
    ) -> Result<Box<dyn CommunicationComponent>, NerveError>;
    fn create_qos_component(&self) -> Result<Box<dyn QoSComponent>, NerveError>;
}
Expand description

Component factory for creating component instances

Required Methods§

fn create_memory_component( &self, ) -> Result<Box<dyn MemoryComponent>, NerveError>

Create a memory component

fn create_thread_component( &self, ) -> Result<Box<dyn ThreadComponent>, NerveError>

Create a thread component

fn create_node_component(&self) -> Result<Box<dyn NodeComponent>, NerveError>

Create a node component

fn create_communication_component( &self, ) -> Result<Box<dyn CommunicationComponent>, NerveError>

Create a communication component

fn create_qos_component(&self) -> Result<Box<dyn QoSComponent>, NerveError>

Create a QoS component

Implementors§