pub trait Event {
type Target;
// Required method
fn target(&self) -> Result<Self::Target, Error>;
}
Expand description
Trait implemented by all events.
pub trait Event {
type Target;
// Required method
fn target(&self) -> Result<Self::Target, Error>;
}
Trait implemented by all events.