pub struct CeremonyEventCursorLease { /* private fields */ }Expand description
Exclusive, expiring right to process one named cursor.
Implementations§
Source§impl CeremonyEventCursorLease
impl CeremonyEventCursorLease
pub fn new( consumer: CeremonyEventConsumer, lease_id: CeremonyEventCursorLeaseId, acknowledged_through: Option<GlobalPosition>, attempt: CeremonyEventCursorAttempt, leased_until: OffsetDateTime, ) -> Self
pub fn consumer(&self) -> &CeremonyEventConsumer
pub fn lease_id(&self) -> &CeremonyEventCursorLeaseId
pub const fn acknowledged_through(&self) -> Option<GlobalPosition>
pub fn next_position(&self) -> GlobalPosition
pub const fn attempt(&self) -> CeremonyEventCursorAttempt
pub const fn leased_until(&self) -> OffsetDateTime
Trait Implementations§
Source§impl Clone for CeremonyEventCursorLease
impl Clone for CeremonyEventCursorLease
Source§impl Debug for CeremonyEventCursorLease
impl Debug for CeremonyEventCursorLease
Source§impl<'de> Deserialize<'de> for CeremonyEventCursorLease
impl<'de> Deserialize<'de> for CeremonyEventCursorLease
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 CeremonyEventCursorLease
Source§impl PartialEq for CeremonyEventCursorLease
impl PartialEq for CeremonyEventCursorLease
Source§impl Serialize for CeremonyEventCursorLease
impl Serialize for CeremonyEventCursorLease
impl StructuralPartialEq for CeremonyEventCursorLease
Auto Trait Implementations§
impl Freeze for CeremonyEventCursorLease
impl RefUnwindSafe for CeremonyEventCursorLease
impl Send for CeremonyEventCursorLease
impl Sync for CeremonyEventCursorLease
impl Unpin for CeremonyEventCursorLease
impl UnsafeUnpin for CeremonyEventCursorLease
impl UnwindSafe for CeremonyEventCursorLease
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