pub struct SessionEventRouter { /* private fields */ }Expand description
Multiplexes one upstream /event stream into per-session subscriptions.
Implementations§
Source§impl SessionEventRouter
impl SessionEventRouter
Sourcepub async fn subscribe(&self, session_id: &str) -> SseSubscription
pub async fn subscribe(&self, session_id: &str) -> SseSubscription
Subscribe to typed events for a single session ID.
Sourcepub fn stats(&self) -> SseStreamStats
pub fn stats(&self) -> SseStreamStats
Get diagnostics for the upstream /event stream used by this router.
Trait Implementations§
Source§impl Clone for SessionEventRouter
impl Clone for SessionEventRouter
Source§fn clone(&self) -> SessionEventRouter
fn clone(&self) -> SessionEventRouter
Returns a duplicate 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 moreSource§impl Debug for SessionEventRouter
impl Debug for SessionEventRouter
Auto Trait Implementations§
impl Freeze for SessionEventRouter
impl !RefUnwindSafe for SessionEventRouter
impl Send for SessionEventRouter
impl Sync for SessionEventRouter
impl Unpin for SessionEventRouter
impl !UnwindSafe for SessionEventRouter
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