Skip to main content

Events

Trait Events 

Source
pub trait Events:
    Send
    + Sync
    + 'static {
    // Provided method
    fn event(&self, event: &Event<'_>) { ... }
}
Expand description

Where web-net reports. Every method has an empty default; the default implementation, NoEvents, reports nothing.

Called on the request path: keep it to a counter or a queue push.

Provided Methods§

Source

fn event(&self, event: &Event<'_>)

One event.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§