pub(crate) enum Timer {
Traditional(TimerEntry),
}Variants§
Traditional(TimerEntry)
Implementations§
Source§impl Timer
impl Timer
pub(crate) fn new(handle: Handle, deadline: Instant) -> Self
pub(crate) fn deadline(&self) -> Instant
pub(crate) fn is_elapsed(&self) -> bool
pub(crate) fn flavor(self: Pin<&Self>) -> TimerFlavor
pub(crate) fn reset(self: Pin<&mut Self>, new_time: Instant, reregister: bool)
pub(crate) fn poll_elapsed( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Error>>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Timer
impl !RefUnwindSafe for Timer
impl Send for Timer
impl Sync for Timer
impl !Unpin for Timer
impl !UnwindSafe for Timer
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