pub struct SubscribeExport<T>where
T: 'static,{ /* private fields */ }Expand description
The subscribe side of a hub. Connect as many subscribers to it as you like — that is what makes the write a broadcast.
Implementations§
Source§impl<T> SubscribeExport<T>where
T: 'static,
impl<T> SubscribeExport<T>where
T: 'static,
Sourcepub fn connect(&self, owner: &dyn PortOwner, name: PortName<dyn SinkHandle<T>>)
pub fn connect(&self, owner: &dyn PortOwner, name: PortName<dyn SinkHandle<T>>)
Take the component’s subscriber and add it to the broadcast list.
Unlike a put/get connect, nothing is written into the port: the
component already put its subscriber there with subscribe, and the
hub collects it. Broadcast runs the other way, so the wiring does too.
Auto Trait Implementations§
impl<T> !RefUnwindSafe for SubscribeExport<T>
impl<T> !Send for SubscribeExport<T>
impl<T> !Sync for SubscribeExport<T>
impl<T> !UnwindSafe for SubscribeExport<T>
impl<T> Freeze for SubscribeExport<T>
impl<T> Unpin for SubscribeExport<T>
impl<T> UnsafeUnpin for SubscribeExport<T>
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