Trait ApplicationEvent

Source
pub trait ApplicationEvent:
    Send
    + Sync
    + 'static {
    // Required method
    fn source(&self) -> Option<&dyn Any>;

    // Provided methods
    fn get_timestamp(&self) -> i64 { ... }
    fn tid(&self) -> TypeId { ... }
}
Expand description

应用事件
Application event

Required Methods§

Source

fn source(&self) -> Option<&dyn Any>

获取事件源

Provided Methods§

Source

fn get_timestamp(&self) -> i64

获取事件时间戳 Get event timestamp

Source

fn tid(&self) -> TypeId

获取事件类型ID Get event type ID

Implementors§