Trait wgpu_core::hub::IdentityHandlerFactory
source · pub trait IdentityHandlerFactory<I> {
type Filter: IdentityHandler<I>;
// Required method
fn spawn(&self) -> Self::Filter;
}
Expand description
A type that can produce IdentityHandler
filters for ids of type I
.
See the module-level documentation for details.
Required Associated Types§
sourcetype Filter: IdentityHandler<I>
type Filter: IdentityHandler<I>
The type of filter this factory constructs.
“Filter” and “handler” seem to both mean the same thing here: something that can produce true ids from proto-ids.
Required Methods§
sourcefn spawn(&self) -> Self::Filter
fn spawn(&self) -> Self::Filter
Create an IdentityHandler<I>
implementation that can
transform proto-ids into ids of type I
.