pub struct EventHubSubscription { /* private fields */ }Expand description
A browser event subscription with a replay prefix.
Implementations§
Source§impl EventHubSubscription
impl EventHubSubscription
Sourcepub fn replay(&self) -> &[SequencedThreadEvent]
pub fn replay(&self) -> &[SequencedThreadEvent]
Returns retained replay events in sequence order.
Sourcepub async fn recv(&mut self) -> Option<SequencedThreadEvent>
pub async fn recv(&mut self) -> Option<SequencedThreadEvent>
Waits for the next live event. A closed receiver means the client was removed because it could not keep up. The subscription owns the state needed to receive retained and live events after the hub is dropped.
Trait Implementations§
Source§impl Drop for EventHubSubscription
impl Drop for EventHubSubscription
Auto Trait Implementations§
impl Freeze for EventHubSubscription
impl RefUnwindSafe for EventHubSubscription
impl Send for EventHubSubscription
impl Sync for EventHubSubscription
impl Unpin for EventHubSubscription
impl UnsafeUnpin for EventHubSubscription
impl UnwindSafe for EventHubSubscription
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