pub struct Publisher<P> { /* private fields */ }Implementations§
Source§impl<P: Declared> Publisher<P>
impl<P: Declared> Publisher<P>
pub fn supervisor(&self) -> &Supervisor
pub async fn publish_on<S: StreamSpec>( &self, row: &S::Row, ) -> Result<(), PublishError>
pub async fn publish_on_context<S: StreamSpec>( &self, row: &S::Row, context: Option<&str>, ) -> Result<(), PublishError>
pub fn batch<S: StreamSpec>(&self) -> Batch<S>
pub async fn publish_batch_on<S: StreamSpec>( &self, batch: &Batch<S>, ) -> Result<(), PublishError>
pub async fn publish_batch_on_context<S: StreamSpec>( &self, batch: &Batch<S>, context: Option<&str>, ) -> Result<(), PublishError>
Trait Implementations§
Source§impl<P: Declared> ObserverHost for Publisher<P>
impl<P: Declared> ObserverHost for Publisher<P>
fn bind(_: Arc<ExecutionContext>, supervisor: Supervisor) -> Self
Source§impl<V: StreamSpec<Row = V> + Described + Message, P: Declared> ObserverPublisher<V> for Publisher<P>
impl<V: StreamSpec<Row = V> + Described + Message, P: Declared> ObserverPublisher<V> for Publisher<P>
Source§impl<S: StreamSpec, P: Declared> ObserverStreamPublisher<S> for Publisher<P>
impl<S: StreamSpec, P: Declared> ObserverStreamPublisher<S> for Publisher<P>
type Error = PublishError
async fn publish_on( &self, _: &ObserverContext<'_, Self>, row: &S::Row, ) -> Result<(), PublishError>
Auto Trait Implementations§
impl<P> !RefUnwindSafe for Publisher<P>
impl<P> !UnwindSafe for Publisher<P>
impl<P> Freeze for Publisher<P>
impl<P> Send for Publisher<P>
impl<P> Sync for Publisher<P>
impl<P> Unpin for Publisher<P>
impl<P> UnsafeUnpin for Publisher<P>
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