Trait s2n_quic_core::time::timer::Query

source ·
pub trait Query {
    // Required method
    fn on_timer(&mut self, timer: &Timer) -> Result;
}
Expand description

A query to be executed against a provider

Required Methods§

source

fn on_timer(&mut self, timer: &Timer) -> Result

Called for each timer owned by the provider

Implementations on Foreign Types§

source§

impl Query for Option<Timestamp>

Implement Query for Option<Timestamp> to make it easy to get the earliest armed timestamp

source§

fn on_timer(&mut self, timer: &Timer) -> Result

Implementors§