Trait rs::event_loop::Event
source · [−]pub trait Event: Clone {
fn new_timeout_reached(when: Instant) -> Self;
fn get_timeout_reached(&self) -> Option<Instant>;
}
Expand description
Carries the incoming data to affect the actor state, plus an event to help schedule timed events.
Required Methods
fn new_timeout_reached(when: Instant) -> Self
fn get_timeout_reached(&self) -> Option<Instant>
fn get_timeout_reached(&self) -> Option<Instant>
Returns the value of the reached timeout, if this event carries the timeout.