#[non_exhaustive]pub struct TimerCtx<'a, S> {
pub store: &'a S,
pub partition: &'a Partition,
pub now_ms: u64,
}Expand description
Reads available to a handler; effects belong in the returned batch.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.store: &'a SThe driver’s concrete store.
partition: &'a PartitionAtomicity boundary for every returned effect.
now_ms: u64Business time for this tick.
Trait Implementations§
Auto Trait Implementations§
impl<'a, S> Freeze for TimerCtx<'a, S>
impl<'a, S> RefUnwindSafe for TimerCtx<'a, S>where
&'a S: RefUnwindSafe,
impl<'a, S> Send for TimerCtx<'a, S>
impl<'a, S> Sync for TimerCtx<'a, S>
impl<'a, S> Unpin for TimerCtx<'a, S>
impl<'a, S> UnsafeUnpin for TimerCtx<'a, S>where
&'a S: UnsafeUnpin,
impl<'a, S> UnwindSafe for TimerCtx<'a, S>where
&'a S: UnwindSafe,
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