pub trait HasSubscription: HasStreamType {
type Subscription<Item: Async>: Async;
// Required method
fn subscribe<T>(
subcription: &Self::Subscription<T>,
) -> impl Future<Output = Option<Self::Stream<T>>> + Send
where T: Async;
}Required Associated Types§
type Subscription<Item: Async>: Async
Required Methods§
fn subscribe<T>(
subcription: &Self::Subscription<T>,
) -> impl Future<Output = Option<Self::Stream<T>>> + Sendwhere
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.