Struct tokio::runtime::time::ShardedWheel
source · struct ShardedWheel(Box<[Mutex<Wheel>]>);
Expand description
Wrapper around the sharded timer wheels.
Tuple Fields§
§0: Box<[Mutex<Wheel>]>
Implementations§
source§impl ShardedWheel
impl ShardedWheel
sourcepub(super) fn lock_sharded_wheel(&self, shard_id: u32) -> MutexGuard<'_, Wheel>
pub(super) fn lock_sharded_wheel(&self, shard_id: u32) -> MutexGuard<'_, Wheel>
Locks the driver’s sharded wheel structure.
Auto Trait Implementations§
impl Freeze for ShardedWheel
impl RefUnwindSafe for ShardedWheel
impl Send for ShardedWheel
impl Sync for ShardedWheel
impl Unpin for ShardedWheel
impl UnwindSafe for ShardedWheel
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