Skip to main content

KeyboardListenerProxyInterface

Trait KeyboardListenerProxyInterface 

Source
pub trait KeyboardListenerProxyInterface: Send + Sync {
    type OnKeyEventResponseFut: Future<Output = Result<KeyEventStatus, Error>> + Send;

    // Required method
    fn on_key_event(&self, event: &KeyEvent) -> Self::OnKeyEventResponseFut;
}

Required Associated Types§

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§