pub trait EventRouterwhere
Self: Sized,{
type Input: Dispatchable + 'static;
type Output: Dispatchable + 'static;
// Provided method
fn process(
self,
input: Self::Input,
area: AbsRect,
extent: AbsRect,
dpi: Vec2,
driver: &Weak<Driver>,
) -> Result<(Self, SmallVec<[Self::Output; 1]>), (Self, SmallVec<[Self::Output; 1]>)> { ... }
}
Required Associated Types§
type Input: Dispatchable + 'static
type Output: Dispatchable + 'static
Provided Methods§
fn process( self, input: Self::Input, area: AbsRect, extent: AbsRect, dpi: Vec2, driver: &Weak<Driver>, ) -> Result<(Self, SmallVec<[Self::Output; 1]>), (Self, 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.