Trait ProvideSubscription

Source
pub trait ProvideSubscription<Runtime>
where Runtime: HasStreamType,
{ type Subscription<Item: Async>: Async; // Required method fn subscribe<T>( subcription: &Self::Subscription<T>, ) -> impl Future<Output = Option<Runtime::Stream<T>>> + Send where T: Async; }

Required Associated Types§

Required Methods§

Source

fn subscribe<T>( subcription: &Self::Subscription<T>, ) -> impl Future<Output = Option<Runtime::Stream<T>>> + Send
where T: Async,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<Component, Runtime> ProvideSubscription<Runtime> for Component
where Runtime: HasStreamType, Component: DelegateComponent<SubscriptionComponent>, Component::Delegate: ProvideSubscription<Runtime>,