pub struct ComponentCreator<'a, 'x, S: ReactorInitializer> { /* private fields */ }Expand description
Creates the components of a reactor.
Implementations§
Source§impl<S: ReactorInitializer> ComponentCreator<'_, '_, S>
impl<S: ReactorInitializer> ComponentCreator<'_, '_, S>
pub fn new_port<T: Sync>( &mut self, lf_name: &'static str, kind: PortKind, ) -> Port<T>
pub fn new_multiport<T: Sync>( &mut self, lf_name: &'static str, kind: PortKind, len: usize, ) -> Result<Multiport<T>, AssemblyError>
pub fn new_logical_action<T: Sync>( &mut self, lf_name: &'static str, min_delay: Option<Duration>, ) -> LogicalAction<T>
pub fn new_physical_action<T: Sync>( &mut self, lf_name: &'static str, min_delay: Option<Duration>, ) -> PhysicalActionRef<T>
pub fn new_timer( &mut self, lf_name: &'static str, offset: Duration, period: Duration, ) -> Timer
Auto Trait Implementations§
impl<'a, 'x, S> Freeze for ComponentCreator<'a, 'x, S>
impl<'a, 'x, S> !RefUnwindSafe for ComponentCreator<'a, 'x, S>
impl<'a, 'x, S> !Send for ComponentCreator<'a, 'x, S>
impl<'a, 'x, S> !Sync for ComponentCreator<'a, 'x, S>
impl<'a, 'x, S> Unpin for ComponentCreator<'a, 'x, S>
impl<'a, 'x, S> !UnwindSafe for ComponentCreator<'a, 'x, S>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more