pub trait EventRouterwhere
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§
type Input: Dispatchable + 'static
type Output: Dispatchable + 'static
Provided Methods§
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.