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,
impl<M> dyn DynamicComponentDefinition<Message = M> + '_where
M: MessageBounds,
Sourcepub fn get_provided_port<P>(&mut self) -> Option<&mut ProvidedPort<P>>where
P: Port,
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.
Sourcepub fn get_required_port<P>(&mut self) -> Option<&mut RequiredPort<P>>where
P: Port,
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.