pub struct RealtimeEventReceiver { /* private fields */ }Expand description
Single-consumer receiver for real-time events.
Implementations§
Source§impl RealtimeEventReceiver
impl RealtimeEventReceiver
Sourcepub fn queued_event_count(&self) -> usize
pub fn queued_event_count(&self) -> usize
Number of accepted events waiting for this receiver.
Sourcepub fn oldest_event_age(&self) -> Option<Duration>
pub fn oldest_event_age(&self) -> Option<Duration>
Age of the oldest accepted event waiting for this receiver.
Sourcepub async fn recv(&mut self) -> Option<RealtimeEvent>
pub async fn recv(&mut self) -> Option<RealtimeEvent>
Receives an event without its socket identity.
Use Self::recv_message when work may overlap transport replacement.
Sourcepub async fn recv_message(&mut self) -> Option<RealtimeMessage>
pub async fn recv_message(&mut self) -> Option<RealtimeMessage>
Receives the accepted prefix, then retained gap and lifecycle boundaries. A disconnected boundary proves both socket tasks have stopped.
Sourcepub fn acknowledge_transport_gap(&mut self)
pub fn acknowledge_transport_gap(&mut self)
Resumes data admission after the caller installs its recovery boundary. This never closes a socket. Completions and keepalives continue while fenced.
Trait Implementations§
Source§impl Debug for RealtimeEventReceiver
impl Debug for RealtimeEventReceiver
Source§impl Drop for RealtimeEventReceiver
impl Drop for RealtimeEventReceiver
Auto Trait Implementations§
impl !RefUnwindSafe for RealtimeEventReceiver
impl !UnwindSafe for RealtimeEventReceiver
impl Freeze for RealtimeEventReceiver
impl Send for RealtimeEventReceiver
impl Sync for RealtimeEventReceiver
impl Unpin for RealtimeEventReceiver
impl UnsafeUnpin for RealtimeEventReceiver
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