pub struct TimerPayloadLocator { /* private fields */ }Expand description
Location of the canonical message payload in CommitLog.
Implementations§
Source§impl TimerPayloadLocator
impl TimerPayloadLocator
Sourcepub const fn try_new(
commit_log_offset: i64,
size: u32,
) -> Result<Self, StoreContractViolation>
pub const fn try_new( commit_log_offset: i64, size: u32, ) -> Result<Self, StoreContractViolation>
Creates a payload locator.
§Errors
Returns StoreContractViolation::TimerInvalidPayloadLocator for a negative offset or zero size.
Sourcepub const fn commit_log_offset(self) -> i64
pub const fn commit_log_offset(self) -> i64
Returns the physical CommitLog offset.
Trait Implementations§
Source§impl Clone for TimerPayloadLocator
impl Clone for TimerPayloadLocator
impl Copy for TimerPayloadLocator
Source§impl Debug for TimerPayloadLocator
impl Debug for TimerPayloadLocator
Source§impl<'de> Deserialize<'de> for TimerPayloadLocator
impl<'de> Deserialize<'de> for TimerPayloadLocator
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 TimerPayloadLocator
Source§impl Hash for TimerPayloadLocator
impl Hash for TimerPayloadLocator
Source§impl PartialEq for TimerPayloadLocator
impl PartialEq for TimerPayloadLocator
Source§impl Serialize for TimerPayloadLocator
impl Serialize for TimerPayloadLocator
impl StructuralPartialEq for TimerPayloadLocator
Auto Trait Implementations§
impl Forget for TimerPayloadLocator
impl Freeze for TimerPayloadLocator
impl Move for TimerPayloadLocator
impl RefUnwindSafe for TimerPayloadLocator
impl Send for TimerPayloadLocator
impl Sync for TimerPayloadLocator
impl Unpin for TimerPayloadLocator
impl UnsafeUnpin for TimerPayloadLocator
impl UnwindSafe for TimerPayloadLocator
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