pub struct SubscriptionWorkerMap { /* private fields */ }
Expand description
A map of subscription processes which can be run as a stream.
Implementations§
Source§impl SubscriptionWorkerMap
impl SubscriptionWorkerMap
Sourcepub fn insert<Repo, FrameService>(
&mut self,
repo: &Repo,
config: impl Into<SubscriptionConfig>,
service: FrameService,
)
pub fn insert<Repo, FrameService>( &mut self, repo: &Repo, config: impl Into<SubscriptionConfig>, service: FrameService, )
Insert a subscription process into the map using a config and a frame service. The subscription process will be started immediately, but won’t do anything until it is polled.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SubscriptionWorkerMap
impl RefUnwindSafe for SubscriptionWorkerMap
impl Send for SubscriptionWorkerMap
impl Sync for SubscriptionWorkerMap
impl Unpin for SubscriptionWorkerMap
impl UnwindSafe for SubscriptionWorkerMap
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