pub struct DispatchSource { /* private fields */ }Available on crate feature
dispatch only.Expand description
Minimal timer-backed DispatchSource wrapper.
Implementations§
Source§impl DispatchSource
impl DispatchSource
Sourcepub fn resume(&self)
pub fn resume(&self)
Activate the timer source after creation.
Repeated or concurrent calls are idempotent.
Sourcepub fn cancel(&self)
pub fn cancel(&self)
Cancel the source.
Repeated or concurrent calls are idempotent. Activating after cancellation is a no-op.
Sourcepub fn fire_count(&self) -> u64
pub fn fire_count(&self) -> u64
Number of timer firings observed by the bridge.
Trait Implementations§
Source§impl Clone for DispatchSource
impl Clone for DispatchSource
Source§impl Debug for DispatchSource
impl Debug for DispatchSource
Source§impl Drop for DispatchSource
impl Drop for DispatchSource
impl Eq for DispatchSource
Source§impl Hash for DispatchSource
impl Hash for DispatchSource
Source§impl PartialEq for DispatchSource
impl PartialEq for DispatchSource
impl Send for DispatchSource
impl StructuralPartialEq for DispatchSource
impl Sync for DispatchSource
Auto Trait Implementations§
impl Freeze for DispatchSource
impl RefUnwindSafe for DispatchSource
impl Unpin for DispatchSource
impl UnsafeUnpin for DispatchSource
impl UnwindSafe for DispatchSource
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