pub enum SessionObservation {
Event(ServerEvent),
Lagged {
count: u64,
},
}Expand description
Observable items from the session receive cursor.
Most callers only care about ServerEvent values and can continue using
Session::next_event. Callers that need visibility into dropped events
should use Session::next_observed_event.
Variants§
Trait Implementations§
Source§impl Clone for SessionObservation
impl Clone for SessionObservation
Source§fn clone(&self) -> SessionObservation
fn clone(&self) -> SessionObservation
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 moreAuto Trait Implementations§
impl Freeze for SessionObservation
impl RefUnwindSafe for SessionObservation
impl Send for SessionObservation
impl Sync for SessionObservation
impl Unpin for SessionObservation
impl UnsafeUnpin for SessionObservation
impl UnwindSafe for SessionObservation
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