Trait Event

Source
pub trait Event {
    type Clonable: Clone + 'static;
    type Unique<'a>: 'a;

    // Required method
    fn downgrade(unique: &mut Self::Unique<'_>) -> Self::Clonable;
}
Expand description

The type of event that can be sent over a Handler.

Required Associated Types§

Source

type Clonable: Clone + 'static

Source

type Unique<'a>: 'a

Required Methods§

Source

fn downgrade(unique: &mut Self::Unique<'_>) -> Self::Clonable

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§