pub struct GenericBroadcaster<E: ToSse + Clone + Send + Sync> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<E: ToSse + Clone + Send + Sync + 'static> Broadcaster for GenericBroadcaster<E>
impl<E: ToSse + Clone + Send + Sync + 'static> Broadcaster for GenericBroadcaster<E>
type Event = E
fn register<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
user_id: &'life1 UserId,
connection_id: &'life2 str,
sender: EventSender,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn unregister<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
user_id: &'life1 UserId,
connection_id: &'life2 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn broadcast<'life0, 'life1, 'async_trait>(
&'life0 self,
user_id: &'life1 UserId,
event: Self::Event,
) -> Pin<Box<dyn Future<Output = usize> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn connection_count<'life0, 'life1, 'async_trait>(
&'life0 self,
user_id: &'life1 UserId,
) -> Pin<Box<dyn Future<Output = usize> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn total_connections<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = usize> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl<E> Freeze for GenericBroadcaster<E>
impl<E> !RefUnwindSafe for GenericBroadcaster<E>
impl<E> Send for GenericBroadcaster<E>
impl<E> Sync for GenericBroadcaster<E>
impl<E> Unpin for GenericBroadcaster<E>where
E: Unpin,
impl<E> UnsafeUnpin for GenericBroadcaster<E>
impl<E> !UnwindSafe for GenericBroadcaster<E>
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