pub struct InMemoryNotifications { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for InMemoryNotifications
impl Clone for InMemoryNotifications
Source§fn clone(&self) -> InMemoryNotifications
fn clone(&self) -> InMemoryNotifications
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for InMemoryNotifications
impl Default for InMemoryNotifications
Source§fn default() -> InMemoryNotifications
fn default() -> InMemoryNotifications
Returns the “default value” for a type. Read more
Source§impl Notifications for InMemoryNotifications
impl Notifications for InMemoryNotifications
Source§fn subscribe<'life0, 'async_trait>(
&'life0 self,
subscription: Subscription,
) -> Pin<Box<dyn Future<Output = Result<(), PodError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn subscribe<'life0, 'async_trait>(
&'life0 self,
subscription: Subscription,
) -> Pin<Box<dyn Future<Output = Result<(), PodError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Register a subscription for a topic.
Source§fn unsubscribe<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), PodError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn unsubscribe<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), PodError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Remove a subscription.
Source§fn publish<'life0, 'life1, 'async_trait>(
&'life0 self,
topic: &'life1 str,
_notification: ChangeNotification,
) -> Pin<Box<dyn Future<Output = Result<(), PodError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn publish<'life0, 'life1, 'async_trait>(
&'life0 self,
topic: &'life1 str,
_notification: ChangeNotification,
) -> Pin<Box<dyn Future<Output = Result<(), PodError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Deliver a notification to all subscribers of
topic.Auto Trait Implementations§
impl Freeze for InMemoryNotifications
impl !RefUnwindSafe for InMemoryNotifications
impl Send for InMemoryNotifications
impl Sync for InMemoryNotifications
impl Unpin for InMemoryNotifications
impl UnsafeUnpin for InMemoryNotifications
impl !UnwindSafe for InMemoryNotifications
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