pub struct PositionedEvent<P> {
pub event: ApplyEvent,
pub position: P,
}Expand description
A source event plus the position to advance after sink success.
Fields§
§event: ApplyEventEvent to transform and apply.
position: PSource position associated with this event (checkpoint candidate).
Implementations§
Source§impl<P> PositionedEvent<P>
impl<P> PositionedEvent<P>
Sourcepub fn new(event: ApplyEvent, position: P) -> Self
pub fn new(event: ApplyEvent, position: P) -> Self
Construct a positioned event.
Sourcepub fn relation_change(change: RelationChange, position: P) -> Self
pub fn relation_change(change: RelationChange, position: P) -> Self
Positioned relation change.
Trait Implementations§
Source§impl<P: Clone> Clone for PositionedEvent<P>
impl<P: Clone> Clone for PositionedEvent<P>
Source§fn clone(&self) -> PositionedEvent<P>
fn clone(&self) -> PositionedEvent<P>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<P: Debug> Debug for PositionedEvent<P>
impl<P: Debug> Debug for PositionedEvent<P>
Source§impl<P> From<PositionedChange<P>> for PositionedEvent<P>
impl<P> From<PositionedChange<P>> for PositionedEvent<P>
Source§fn from(pc: PositionedChange<P>) -> Self
fn from(pc: PositionedChange<P>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<P> Freeze for PositionedEvent<P>where
P: Freeze,
impl<P> RefUnwindSafe for PositionedEvent<P>where
P: RefUnwindSafe,
impl<P> Send for PositionedEvent<P>where
P: Send,
impl<P> Sync for PositionedEvent<P>where
P: Sync,
impl<P> Unpin for PositionedEvent<P>where
P: Unpin,
impl<P> UnsafeUnpin for PositionedEvent<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for PositionedEvent<P>where
P: 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