pub struct StreamPosition(/* private fields */);Expand description
Global stream position representing a location in the ordered event log.
StreamPosition uniquely identifies a position in the global event stream across all individual streams. Used by projectors to track progress and enable resumable event processing.
Positions are UUID7 values (timestamp-ordered UUIDs) assigned at event append time. They are monotonically increasing and globally sortable.
Implementations§
Source§impl StreamPosition
impl StreamPosition
pub fn new(raw_value: Uuid) -> StreamPosition
Source§impl StreamPosition
impl StreamPosition
pub fn into_inner(self) -> Uuid
Trait Implementations§
Source§impl Clone for StreamPosition
impl Clone for StreamPosition
Source§fn clone(&self) -> StreamPosition
fn clone(&self) -> StreamPosition
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 moreSource§impl Debug for StreamPosition
impl Debug for StreamPosition
Source§impl Display for StreamPosition
impl Display for StreamPosition
Source§impl Ord for StreamPosition
impl Ord for StreamPosition
Source§fn cmp(&self, other: &StreamPosition) -> Ordering
fn cmp(&self, other: &StreamPosition) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StreamPosition
impl PartialEq for StreamPosition
Source§impl PartialOrd for StreamPosition
impl PartialOrd for StreamPosition
impl Copy for StreamPosition
impl Eq for StreamPosition
impl StructuralPartialEq for StreamPosition
Auto Trait Implementations§
impl Freeze for StreamPosition
impl RefUnwindSafe for StreamPosition
impl Send for StreamPosition
impl Sync for StreamPosition
impl Unpin for StreamPosition
impl UnwindSafe for StreamPosition
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