Struct medea_jason::utils::component::WatchersSpawner
source · pub struct WatchersSpawner<S, O> { /* private fields */ }
Expand description
Spawner for the Component
’s watchers.
Implementations§
source§impl<S: 'static, O: 'static> WatchersSpawner<S, O>
impl<S: 'static, O: 'static> WatchersSpawner<S, O>
sourcepub fn spawn<R, V, F, H>(&mut self, rx: R, handle: F)where
R: Stream<Item = V> + Unpin + 'static,
F: Fn(Rc<O>, Rc<S>, V) -> H + 'static,
H: Future + 'static,
<H as Future>::Output: IntoResult,
pub fn spawn<R, V, F, H>(&mut self, rx: R, handle: F)where R: Stream<Item = V> + Unpin + 'static, F: Fn(Rc<O>, Rc<S>, V) -> H + 'static, H: Future + 'static, <H as Future>::Output: IntoResult,
Trait Implementations§
Auto Trait Implementations§
impl<S, O> !RefUnwindSafe for WatchersSpawner<S, O>
impl<S, O> !Send for WatchersSpawner<S, O>
impl<S, O> !Sync for WatchersSpawner<S, O>
impl<S, O> Unpin for WatchersSpawner<S, O>
impl<S, O> !UnwindSafe for WatchersSpawner<S, O>
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