pub struct InMemorySubscriber { /* private fields */ }Expand description
Subscriber for the in-memory bus.
Trait Implementations§
Source§impl EventSubscriber for InMemorySubscriber
impl EventSubscriber for InMemorySubscriber
Source§fn recv<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Event>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn recv<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Event>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Receive the next event.
Source§fn recv_filtered<'life0, 'life1, 'async_trait>(
&'life0 mut self,
topic_prefix: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Event>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn recv_filtered<'life0, 'life1, 'async_trait>(
&'life0 mut self,
topic_prefix: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Event>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Receive the next event whose topic starts with the given prefix.
Events that don’t match are silently skipped.
Auto Trait Implementations§
impl Freeze for InMemorySubscriber
impl RefUnwindSafe for InMemorySubscriber
impl Send for InMemorySubscriber
impl Sync for InMemorySubscriber
impl Unpin for InMemorySubscriber
impl UnsafeUnpin for InMemorySubscriber
impl UnwindSafe for InMemorySubscriber
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