pub struct MemoryPubSub { /* private fields */ }Implementations§
Source§impl MemoryPubSub
impl MemoryPubSub
Trait Implementations§
Source§impl Default for MemoryPubSub
impl Default for MemoryPubSub
Source§impl PubSub for MemoryPubSub
impl PubSub for MemoryPubSub
fn subscribe<'life0, 'life1, 'async_trait>(
&'life0 self,
stream: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Receiver<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn publish<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
stream: &'life1 str,
message: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn unsubscribe<'life0, 'life1, 'async_trait>(
&'life0 self,
stream: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl !Freeze for MemoryPubSub
impl !RefUnwindSafe for MemoryPubSub
impl Send for MemoryPubSub
impl Sync for MemoryPubSub
impl Unpin for MemoryPubSub
impl UnsafeUnpin for MemoryPubSub
impl UnwindSafe for MemoryPubSub
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