pub struct RuntimeSubscription {
pub replay: Vec<RuntimeEventEnvelope>,
pub live: BoxRuntimeEventStream,
}Expand description
Replay page plus a live stream for a single subscription.
Callers are expected to drain replay first, then poll live. Overlap is
possible (an event present in replay may also arrive via live); dedup
via RuntimeEventEnvelope::event_id
or seq.
Fields§
§replay: Vec<RuntimeEventEnvelope>Buffered replay events read from the store.
live: BoxRuntimeEventStreamLive fanout stream for subsequent events.
Auto Trait Implementations§
impl !RefUnwindSafe for RuntimeSubscription
impl !Sync for RuntimeSubscription
impl !UnwindSafe for RuntimeSubscription
impl Freeze for RuntimeSubscription
impl Send for RuntimeSubscription
impl Unpin for RuntimeSubscription
impl UnsafeUnpin for RuntimeSubscription
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