[][src]Trait revent::Event

pub trait Event: Any {
    fn as_any(&self) -> &dyn Any;
}

A generic event. Implemented for almost all types.

A generic event is just anything that can be represented as Any. No further bounds are applied to events, giving the maximum amount of flexibility.

Required methods

fn as_any(&self) -> &dyn Any

Get the reference to this events' Any. Used for downcasting.

Normally not used directly but rather used by down.

Loading content...

Implementors

impl<T: Any> Event for T[src]

Loading content...