Trait IOCallbackCustom

Source
pub trait IOCallbackCustom:
    Sized
    + 'static
    + Send
    + Unpin {
    // Required method
    fn call(self, _event: Box<IOEvent<Self>>);
}
Expand description

Define your callback with this trait

Required Methods§

Source

fn call(self, _event: Box<IOEvent<Self>>)

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§