Enum
PumpRequest
pub enum PumpRequest {
Now,
After(Duration),
}A request from CEF indicating when it next needs to be serviced.
Passed to the closure given to App::scheduler.
Variants
#Now
CEF needs work immediately.
Methods
#pub fn deadline(self, now: Instant) -> Instant
Returns when to call AppInstance::pump for a request made at
now. That is now itself or now plus the delay.
A delay too long to add to now gives now; pumping early is safe.
Trait implementations
impl Clone for PumpRequestimpl Copy for PumpRequestimpl Debug for PumpRequestimpl Eq for PumpRequestimpl PartialEq for PumpRequest