RKTK API Docs RKTK Home Repo

Trait CommonHooks

Source
pub trait CommonHooks {
    // Provided method
    async fn on_init(
        &mut self,
        _hand: Hand,
        _key_scanner: &mut impl KeyscanDriver,
        _mouse: Option<&mut impl MouseDriver>,
        _storage: Option<&mut impl StorageDriver>,
    ) { ... }
}
Expand description

Hooks common for both master and slave side

Provided Methods§

Source

async fn on_init( &mut self, _hand: Hand, _key_scanner: &mut impl KeyscanDriver, _mouse: Option<&mut impl MouseDriver>, _storage: Option<&mut impl StorageDriver>, )

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§