EventRouter

Trait EventRouter 

Source
pub trait EventRouter
where Self: Sized,
{ type Input: Dispatchable + 'static; type Output: Dispatchable + 'static; // Provided method fn process( state: AccessCell<'_, '_, Self>, input: Self::Input, area: PxRect, extent: PxRect, dpi: RelDim, driver: &Weak<Driver>, ) -> InputResult<SmallVec<[Self::Output; 1]>> { ... } }

Required Associated Types§

Source

type Input: Dispatchable + 'static

Source

type Output: Dispatchable + 'static

Provided Methods§

Source

fn process( state: AccessCell<'_, '_, Self>, input: Self::Input, area: PxRect, extent: PxRect, dpi: RelDim, driver: &Weak<Driver>, ) -> InputResult<SmallVec<[Self::Output; 1]>>

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§