InterfaceManager

Trait InterfaceManager 

Source
pub trait InterfaceManager:
    Send
    + Sync
    + Lifecycle {
    // Required methods
    fn get_interfaces(&self) -> Vec<Interface>;
    fn get_component_interface(&self, component: Component) -> Interface;
    fn get_entity_interface(&self) -> Interface;
    fn get_relation_interface(&self) -> Interface;
    fn get_flow_interface(&self) -> Interface;
}

Required Methods§

Source

fn get_interfaces(&self) -> Vec<Interface>

Returns the interfaces of the dynamic graph.

Source

fn get_component_interface(&self, component: Component) -> Interface

Constructs an interface for the given component.

Source

fn get_entity_interface(&self) -> Interface

Constructs an interface for entity types. Each entity type has an id field.

Source

fn get_relation_interface(&self) -> Interface

Constructs an interface for relation types. Each relation type has fields for the relation type and the relation type instance id.

Source

fn get_flow_interface(&self) -> Interface

Constructs an interface for flow types. Each flow type has an id field which returns the id of the wrapper entity instance.

Trait Implementations§

Source§

impl Injectable for dyn InterfaceManager + Sync + Send

Implementors§