pub struct TopicJoin<T> { /* private fields */ }Expand description
Join has multiple input channels and a single output channel. All messages received on any input channel are sent to the output channel. There is no particular guarantee on the order of messages on the output channel.
Trait Implementations§
Source§impl<T> Codelet for TopicJoin<T>
impl<T> Codelet for TopicJoin<T>
Source§type Status = DefaultStatus
type Status = DefaultStatus
Status code used to indicate health of codelet
Source§type Config = TopicJoinConfig
type Config = TopicJoinConfig
Type used for configuration
Source§type Rx = TopicJoinRx<Message<T>>
type Rx = TopicJoinRx<Message<T>>
Type holding all receiving (RX) endpoints
Source§fn step(
&mut self,
_: &Context<'_, Self>,
rx: &mut Self::Rx,
tx: &mut Self::Tx,
) -> Outcome
fn step( &mut self, _: &Context<'_, Self>, rx: &mut Self::Rx, tx: &mut Self::Tx, ) -> Outcome
Step is executed periodically after the codelet is started and while it is not paused.
Source§fn start(
&mut self,
_cx: &Context<'_, Self>,
_rx: &mut Self::Rx,
_tx: &mut Self::Tx,
) -> Result<Self::Status, Report>
fn start( &mut self, _cx: &Context<'_, Self>, _rx: &mut Self::Rx, _tx: &mut Self::Tx, ) -> Result<Self::Status, Report>
Start is guaranteed to be called first. Start may be called again after stop was called.
Auto Trait Implementations§
impl<T> Freeze for TopicJoin<T>
impl<T> RefUnwindSafe for TopicJoin<T>where
T: RefUnwindSafe,
impl<T> Send for TopicJoin<T>where
T: Send,
impl<T> Sync for TopicJoin<T>where
T: Sync,
impl<T> Unpin for TopicJoin<T>where
T: Unpin,
impl<T> UnwindSafe for TopicJoin<T>where
T: UnwindSafe,
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