struct Inner {
state: Mutex<InnerState>,
is_shutdown: AtomicBool,
}
Expand description
Timer state shared between Driver
, Handle
, and Registration
.
Fields§
§state: Mutex<InnerState>
§is_shutdown: AtomicBool
True if the driver is being shutdown.
Implementations§
Source§impl Inner
impl Inner
Sourcepub(super) fn lock(&self) -> MutexGuard<'_, InnerState>
pub(super) fn lock(&self) -> MutexGuard<'_, InnerState>
Locks the driver’s inner structure
pub(super) fn is_shutdown(&self) -> bool
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