pub struct PromotionParams { /* private fields */ }Expand description
Parameters for authority-mediated promotion that group sequencing and timing context.
Implementations§
Source§impl PromotionParams
impl PromotionParams
Sourcepub fn new(
current_time: u64,
first_sequence: u64,
event_timestamp: u64,
durability: DurabilityPolicy,
) -> Self
pub fn new( current_time: u64, first_sequence: u64, event_timestamp: u64, durability: DurabilityPolicy, ) -> Self
Creates new promotion parameters.
Sourcepub fn current_time(&self) -> u64
pub fn current_time(&self) -> u64
Returns the current time used for promotion eligibility.
Sourcepub fn first_sequence(&self) -> u64
pub fn first_sequence(&self) -> u64
Returns the first WAL sequence to assign.
Sourcepub fn event_timestamp(&self) -> u64
pub fn event_timestamp(&self) -> u64
Returns the event timestamp.
Sourcepub fn durability(&self) -> DurabilityPolicy
pub fn durability(&self) -> DurabilityPolicy
Returns the durability policy.
Auto Trait Implementations§
impl Freeze for PromotionParams
impl RefUnwindSafe for PromotionParams
impl Send for PromotionParams
impl Sync for PromotionParams
impl Unpin for PromotionParams
impl UnsafeUnpin for PromotionParams
impl UnwindSafe for PromotionParams
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