pub struct InMemoryBroadcastChannel(_);
Trait Implementations§
source§impl BroadcastChannel for InMemoryBroadcastChannel
impl BroadcastChannel for InMemoryBroadcastChannel
type Resource = InMemoryBroadcastChannelResource
fn subscribe(&self) -> Result<Self::Resource, AnyError>
fn unsubscribe(&self, resource: &Self::Resource) -> Result<(), AnyError>
fn send<'life0, 'life1, 'async_trait>( &'life0 self, resource: &'life1 Self::Resource, name: String, data: Vec<u8> ) -> Pin<Box<dyn Future<Output = Result<(), AnyError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
fn recv<'life0, 'life1, 'async_trait>( &'life0 self, resource: &'life1 Self::Resource ) -> Pin<Box<dyn Future<Output = Result<Option<Message>, AnyError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
source§impl Clone for InMemoryBroadcastChannel
impl Clone for InMemoryBroadcastChannel
source§fn clone(&self) -> InMemoryBroadcastChannel
fn clone(&self) -> InMemoryBroadcastChannel
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more