pub trait ObserverStreamPublisher<S: StreamSpec>:
Send
+ Sync
+ Sized{
type Error: Error + From<PublicationError> + Send + Sync + 'static;
// Required method
fn publish_on(
&self,
context: &ObserverContext<'_, Self>,
row: &S::Row,
) -> impl Future<Output = Result<(), Self::Error>> + Send;
}Required Associated Types§
Required Methods§
fn publish_on( &self, context: &ObserverContext<'_, Self>, row: &S::Row, ) -> impl Future<Output = Result<(), Self::Error>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".