Enum calloop::timer::TimeoutAction
source · pub enum TimeoutAction {
Drop,
ToInstant(Instant),
ToDuration(Duration),
}
Expand description
Action to reschedule a timeout if necessary
Variants§
Drop
Don’t reschedule this timer
ToInstant(Instant)
Reschedule this timer to a given Instant
ToDuration(Duration)
Reschedule this timer to a given Duration
in the future
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TimeoutAction
impl RefUnwindSafe for TimeoutAction
impl Send for TimeoutAction
impl Sync for TimeoutAction
impl Unpin for TimeoutAction
impl UnwindSafe for TimeoutAction
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