pub struct TimerPayloadStoreLocator { /* private fields */ }Expand description
Stable location of one complete message in the long-horizon payload store.
Unlike TimerPayloadLocator, this locator does not depend on the ordinary CommitLog
retention window. Its partition is derived from the original UTC due day and delivery lane.
Implementations§
Source§impl TimerPayloadStoreLocator
impl TimerPayloadStoreLocator
Sourcepub const fn try_new(
due_day_utc: i32,
lane: u16,
segment_id: u64,
offset: u64,
length: u32,
checksum: u32,
) -> Result<Self, StoreContractViolation>
pub const fn try_new( due_day_utc: i32, lane: u16, segment_id: u64, offset: u64, length: u32, checksum: u32, ) -> Result<Self, StoreContractViolation>
Creates a validated payload-store locator.
§Errors
Returns StoreContractViolation::TimerInvalidPayloadStoreLocator when length is zero.
Sourcepub const fn due_day_utc(self) -> i32
pub const fn due_day_utc(self) -> i32
Returns the UTC day number since the Unix epoch.
Sourcepub const fn segment_id(self) -> u64
pub const fn segment_id(self) -> u64
Returns the partition-local segment id.
Trait Implementations§
Source§impl Clone for TimerPayloadStoreLocator
impl Clone for TimerPayloadStoreLocator
impl Copy for TimerPayloadStoreLocator
Source§impl Debug for TimerPayloadStoreLocator
impl Debug for TimerPayloadStoreLocator
Source§impl<'de> Deserialize<'de> for TimerPayloadStoreLocator
impl<'de> Deserialize<'de> for TimerPayloadStoreLocator
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 TimerPayloadStoreLocator
Source§impl Hash for TimerPayloadStoreLocator
impl Hash for TimerPayloadStoreLocator
Source§impl PartialEq for TimerPayloadStoreLocator
impl PartialEq for TimerPayloadStoreLocator
Source§impl Serialize for TimerPayloadStoreLocator
impl Serialize for TimerPayloadStoreLocator
impl StructuralPartialEq for TimerPayloadStoreLocator
Auto Trait Implementations§
impl Freeze for TimerPayloadStoreLocator
impl RefUnwindSafe for TimerPayloadStoreLocator
impl Send for TimerPayloadStoreLocator
impl Sync for TimerPayloadStoreLocator
impl Unpin for TimerPayloadStoreLocator
impl UnsafeUnpin for TimerPayloadStoreLocator
impl UnwindSafe for TimerPayloadStoreLocator
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