pub struct GapEvent<T> { /* private fields */ }Expand description
A lossless view event plus the generated base fields gap recovery needs.
T stays intact because the generated UnframedViewNotificationParams
contains only the common envelope fields. Deserializing a page into that
type would discard event-specific item and turn data before the fold sees it.
Implementations§
Source§impl<T> GapEvent<T>
impl<T> GapEvent<T>
Sourcepub fn new(
session_id: impl Into<String>,
view_cursor: impl Into<String>,
value: T,
) -> Self
pub fn new( session_id: impl Into<String>, view_cursor: impl Into<String>, value: T, ) -> Self
Wraps one event with the session and view cursor it was delivered under.
Sourcepub fn session_id(&self) -> &str
pub fn session_id(&self) -> &str
The session the event names.
Sourcepub fn view_cursor(&self) -> &str
pub fn view_cursor(&self) -> &str
The event’s opaque view cursor.
Trait Implementations§
impl<T: Eq> Eq for GapEvent<T>
impl<T: PartialEq> StructuralPartialEq for GapEvent<T>
Auto Trait Implementations§
impl<T> Forget for GapEvent<T>
impl<T> Freeze for GapEvent<T>where
T: Freeze,
impl<T> Move for GapEvent<T>
impl<T> RefUnwindSafe for GapEvent<T>where
T: RefUnwindSafe,
impl<T> Send for GapEvent<T>where
T: Send,
impl<T> Sync for GapEvent<T>where
T: Sync,
impl<T> Unpin for GapEvent<T>where
T: Unpin,
impl<T> UnsafeUnpin for GapEvent<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for GapEvent<T>where
T: UnwindSafe,
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