struct Inner {
next_wake: AtomicOptionNonZeroU64,
wheels: RwLock<ShardedWheel>,
wheels_len: u32,
pub(super) is_shutdown: AtomicBool,
}
Expand description
Timer state shared between Driver
, Handle
, and Registration
.
Fields§
§next_wake: AtomicOptionNonZeroU64
The earliest time at which we promise to wake up without unparking.
wheels: RwLock<ShardedWheel>
Sharded Timer wheels.
wheels_len: u32
Number of entries in the sharded timer wheels.
is_shutdown: AtomicBool
True if the driver is being shutdown.
Implementations§
source§impl Inner
impl Inner
pub(super) fn is_shutdown(&self) -> bool
fn get_shard_size(&self) -> u32
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Inner
impl RefUnwindSafe for Inner
impl Send for Inner
impl Sync for Inner
impl Unpin for Inner
impl UnwindSafe for Inner
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