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§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".