pub trait Topic<S, K>where
K: Clone + Default + Hash + Eq,
Self: Send + 'static,
Self::Output: Send + 'static,
Self::Error: Send + 'static,
Self::References: Deref<Target = Self::Output> + for<'a> From<&'a Self::Output> + 'static,
Self::Storage: Storage<Self::Output> + 'static,{
type Output;
type Error;
type References;
type Storage;
// Required methods
fn storage(&self) -> Self::Storage;
fn mount(
&self,
manager: TopicManager<S>,
storage: StorageManager<K, Self::Output, Self::Storage>,
) -> BoxStream<'static, Result<(), Self::Error>>;
// Provided method
fn topic_id(&self) -> impl Debug + Hash { ... }
}Required Associated Types§
Required Methods§
fn storage(&self) -> Self::Storage
fn mount( &self, manager: TopicManager<S>, storage: StorageManager<K, Self::Output, Self::Storage>, ) -> BoxStream<'static, Result<(), Self::Error>>
Provided Methods§
Object Safety§
This trait is not object safe.