pub struct ScheduleDecision {
pub delay: Duration,
}Expand description
One scheduling step: how long to wait before the next iteration.
Fields§
§delay: DurationSleep duration before the next attempt (may be zero).
Implementations§
Source§impl ScheduleDecision
impl ScheduleDecision
Sourcepub fn continue_after(delay: Duration) -> Self
pub fn continue_after(delay: Duration) -> Self
Decision to continue after sleeping for delay.
Trait Implementations§
Source§impl Clone for ScheduleDecision
impl Clone for ScheduleDecision
Source§fn clone(&self) -> ScheduleDecision
fn clone(&self) -> ScheduleDecision
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScheduleDecision
impl Debug for ScheduleDecision
Source§impl PartialEq for ScheduleDecision
impl PartialEq for ScheduleDecision
impl Copy for ScheduleDecision
impl Eq for ScheduleDecision
impl StructuralPartialEq for ScheduleDecision
Auto Trait Implementations§
impl Freeze for ScheduleDecision
impl RefUnwindSafe for ScheduleDecision
impl Send for ScheduleDecision
impl Sync for ScheduleDecision
impl Unpin for ScheduleDecision
impl UnsafeUnpin for ScheduleDecision
impl UnwindSafe for ScheduleDecision
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Equal for T
impl<T> Equal for T
Source§fn effect_equals(&self, other: &Self) -> bool
fn effect_equals(&self, other: &Self) -> bool
Returns whether
self and other are structurally equal (defaults to PartialEq::eq).