Skip to main content

DynamicComponentDefinition

Trait DynamicComponentDefinition 

Source
pub trait DynamicComponentDefinition:
    DynamicPortAccess
    + ActorRaw
    + ComponentLifecycle
    + Send { }
Expand description

Object-safe part of ComponentDefinition.

This trait aggregates all the object-safe super-traits of ComponentDefinition to make trait objects possible while rust doesn’t have multi-trait trait-objects.

Implementations§

Source§

impl<M> dyn DynamicComponentDefinition<Message = M> + '_
where M: MessageBounds,

Source

pub fn get_provided_port<P>(&mut self) -> Option<&mut ProvidedPort<P>>
where P: Port,

Dynamically obtain a mutable reference to a ProvidedPort<P> if self provides a port of type P.

Source

pub fn get_required_port<P>(&mut self) -> Option<&mut RequiredPort<P>>
where P: Port,

Dynamically obtain a mutable reference to a RequiredPort<P> if self requires a port of type P.

Implementors§