Trait LazyEvent

Source
pub trait LazyEvent {
    // Required method
    fn call(self) -> Event;
}
Expand description

Helper to lazyly create an Event, in the case that the event creation is expensive and we want to avoid it if the progress sender is disabled.

Required Methods§

Source

fn call(self) -> Event

Implementors§

Source§

impl LazyEvent for Event

Source§

impl<T> LazyEvent for T
where T: FnOnce() -> Event,