Skip to main content

Handler

Trait Handler 

Source
pub trait Handler:
    'static
    + Send
    + Sync {
    // Required methods
    fn handle(&self, location: Location<'_>);
    fn error(&self, error: Error);
}
Expand description

A handler that handles location events and errors.

The handler should be registered with Manager::new.

Required Methods§

Source

fn handle(&self, location: Location<'_>)

Source

fn error(&self, error: Error)

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§