Menu

Enum

PumpRequest

kurogane::PumpRequestSource
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.

#After(Duration)

CEF needs work after the given delay.

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