Skip to main content

HandlerId

Trait HandlerId 

Source
pub trait HandlerId:
    Send
    + Sync
    + Debug {
    // Required method
    fn detach(&self);
}
Expand description

Opaque handler ID for event handlers, once dropped handler will be removed automatically

Required Methods§

Source

fn detach(&self)

Consumes HandlerId and prevents handler from being removed automatically.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl HandlerId for HandlerId

Source§

fn detach(&self)

Implementors§