pub struct StreamSubscriptionTask<Runtime, S, T>{
pub stream: S,
pub task_senders: Arc<Runtime::Mutex<Option<Vec<Runtime::Sender<T>>>>>,
}
Fields§
§stream: S
§task_senders: Arc<Runtime::Mutex<Option<Vec<Runtime::Sender<T>>>>>
Trait Implementations§
Source§impl<Runtime, S, T> Task for StreamSubscriptionTask<Runtime, S, T>where
Runtime: HasMutex + CanCreateChannels + CanUseChannels + CanStreamReceiver + HasBoxedStreamType,
T: Clone + Async,
S: Stream<Item = T> + Async,
impl<Runtime, S, T> Task for StreamSubscriptionTask<Runtime, S, T>where
Runtime: HasMutex + CanCreateChannels + CanUseChannels + CanStreamReceiver + HasBoxedStreamType,
T: Clone + Async,
S: Stream<Item = T> + Async,
Auto Trait Implementations§
impl<Runtime, S, T> Freeze for StreamSubscriptionTask<Runtime, S, T>where
S: Freeze,
impl<Runtime, S, T> RefUnwindSafe for StreamSubscriptionTask<Runtime, S, T>where
S: RefUnwindSafe,
<Runtime as HasMutex>::Mutex<Option<Vec<<Runtime as HasChannelTypes>::Sender<T>>>>: RefUnwindSafe,
impl<Runtime, S, T> Send for StreamSubscriptionTask<Runtime, S, T>
impl<Runtime, S, T> Sync for StreamSubscriptionTask<Runtime, S, T>
impl<Runtime, S, T> Unpin for StreamSubscriptionTask<Runtime, S, T>where
S: Unpin,
impl<Runtime, S, T> UnwindSafe for StreamSubscriptionTask<Runtime, S, T>where
S: UnwindSafe,
<Runtime as HasMutex>::Mutex<Option<Vec<<Runtime as HasChannelTypes>::Sender<T>>>>: RefUnwindSafe,
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