pub struct GlobalPosition(/* private fields */);Expand description
Where a sealed record sits in the order every stream shares.
Positions start at 1 and strictly increase across all streams in the order the store accepted the appends; the store assigns them inside the transaction that lands the records, so two appends can never claim the same one. A consumer that reads every stream — a publisher, a projection — keeps a position as its cursor instead of one sequence per ceremony.
Implementations§
Trait Implementations§
Source§impl Clone for GlobalPosition
impl Clone for GlobalPosition
impl Copy for GlobalPosition
Source§impl Debug for GlobalPosition
impl Debug for GlobalPosition
Source§impl<'de> Deserialize<'de> for GlobalPosition
impl<'de> Deserialize<'de> for GlobalPosition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for GlobalPosition
Source§impl Hash for GlobalPosition
impl Hash for GlobalPosition
Source§impl Ord for GlobalPosition
impl Ord for GlobalPosition
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for GlobalPosition
impl PartialEq for GlobalPosition
Source§impl PartialOrd for GlobalPosition
impl PartialOrd for GlobalPosition
Source§impl Serialize for GlobalPosition
impl Serialize for GlobalPosition
impl StructuralPartialEq for GlobalPosition
Auto Trait Implementations§
impl Freeze for GlobalPosition
impl RefUnwindSafe for GlobalPosition
impl Send for GlobalPosition
impl Sync for GlobalPosition
impl Unpin for GlobalPosition
impl UnsafeUnpin for GlobalPosition
impl UnwindSafe for GlobalPosition
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