pub struct RealtimeEventReceiver { /* private fields */ }Expand description
Single-consumer bounded receiver for real-time events.
Implementations§
Source§impl RealtimeEventReceiver
impl RealtimeEventReceiver
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§
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