pub struct BoundParticipantCursor { /* private fields */ }Expand description
One currently bound participant’s durable cumulative-cursor state.
All fields are private so cursor advancement can occur only through the monotonic cumulative-ack transition below.
Implementations§
Source§impl BoundParticipantCursor
impl BoundParticipantCursor
Sourcepub const fn new(
participant_id: ParticipantId,
active_binding_epoch: BindingEpoch,
cursor: DeliverySeq,
) -> Self
pub const fn new( participant_id: ParticipantId, active_binding_epoch: BindingEpoch, cursor: DeliverySeq, ) -> Self
Creates one bound participant cursor at its already-durable position.
Sourcepub const fn participant_index(self) -> ParticipantIndex
pub const fn participant_index(self) -> ParticipantIndex
Returns the participant’s permanent index.
Sourcepub const fn participant_id(self) -> ParticipantId
pub const fn participant_id(self) -> ParticipantId
Returns the participant’s permanent identifier.
Sourcepub const fn active_binding_epoch(self) -> BindingEpoch
pub const fn active_binding_epoch(self) -> BindingEpoch
Returns the binding epoch authorized to advance this cursor.
Sourcepub const fn cursor(self) -> DeliverySeq
pub const fn cursor(self) -> DeliverySeq
Returns the durable cumulative cursor.
Trait Implementations§
Source§impl Clone for BoundParticipantCursor
impl Clone for BoundParticipantCursor
Source§fn clone(&self) -> BoundParticipantCursor
fn clone(&self) -> BoundParticipantCursor
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 moreimpl Copy for BoundParticipantCursor
Source§impl Debug for BoundParticipantCursor
impl Debug for BoundParticipantCursor
impl Eq for BoundParticipantCursor
Source§impl PartialEq for BoundParticipantCursor
impl PartialEq for BoundParticipantCursor
impl StructuralPartialEq for BoundParticipantCursor
Auto Trait Implementations§
impl Freeze for BoundParticipantCursor
impl RefUnwindSafe for BoundParticipantCursor
impl Send for BoundParticipantCursor
impl Sync for BoundParticipantCursor
impl Unpin for BoundParticipantCursor
impl UnsafeUnpin for BoundParticipantCursor
impl UnwindSafe for BoundParticipantCursor
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