pub struct TimerPolicySnapshot { /* private fields */ }Expand description
Immutable admission policy used while normalizing one timer request.
Implementations§
Source§impl TimerPolicySnapshot
impl TimerPolicySnapshot
Sourcepub fn try_new(
precision_ms: u64,
max_delay_ms: u64,
) -> Result<Self, ModelContractViolation>
pub fn try_new( precision_ms: u64, max_delay_ms: u64, ) -> Result<Self, ModelContractViolation>
Creates a validated Java-compatible timer policy.
§Errors
Returns ModelContractViolation::UnsupportedTimerPrecision when the precision is not one of the
values supported by the Java-compatible timer engine.
pub const fn precision_ms(self) -> u64
pub const fn max_delay_ms(self) -> u64
Sourcepub const fn fingerprint(self) -> u64
pub const fn fingerprint(self) -> u64
Returns the stable fingerprint persisted with normalized timer requests.
Only admission semantics participate. Physical storage parameters such as segment or page size deliberately do not change ownership of already accepted records.
Trait Implementations§
Source§impl Clone for TimerPolicySnapshot
impl Clone for TimerPolicySnapshot
impl Copy for TimerPolicySnapshot
Source§impl Debug for TimerPolicySnapshot
impl Debug for TimerPolicySnapshot
impl Eq for TimerPolicySnapshot
Source§impl PartialEq for TimerPolicySnapshot
impl PartialEq for TimerPolicySnapshot
impl StructuralPartialEq for TimerPolicySnapshot
Auto Trait Implementations§
impl Freeze for TimerPolicySnapshot
impl RefUnwindSafe for TimerPolicySnapshot
impl Send for TimerPolicySnapshot
impl Sync for TimerPolicySnapshot
impl Unpin for TimerPolicySnapshot
impl UnsafeUnpin for TimerPolicySnapshot
impl UnwindSafe for TimerPolicySnapshot
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