pub struct InMemoryBroadcastChannel(_);
Trait Implementations
sourceimpl 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
'life0: 'async_trait,
'life1: 'async_trait,
Self: '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
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
sourceimpl Clone for InMemoryBroadcastChannel
impl Clone for InMemoryBroadcastChannel
sourcefn clone(&self) -> InMemoryBroadcastChannel
fn clone(&self) -> InMemoryBroadcastChannel
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for InMemoryBroadcastChannel
impl Send for InMemoryBroadcastChannel
impl Sync for InMemoryBroadcastChannel
impl Unpin for InMemoryBroadcastChannel
impl !UnwindSafe for InMemoryBroadcastChannel
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more