Struct wgpu_core::hub::IdentityManagerFactory
source · [−]pub struct IdentityManagerFactory;
Expand description
A global identity handler factory based on IdentityManager
.
Each of this type’s IdentityHandlerFactory<I>::spawn
methods
returns a Mutex<IdentityManager<I>>
, which allocates fresh I
ids itself, and takes ()
as its proto-id type.
Trait Implementations
sourceimpl Debug for IdentityManagerFactory
impl Debug for IdentityManagerFactory
sourceimpl<I: TypedId + Debug> IdentityHandlerFactory<I> for IdentityManagerFactory
impl<I: TypedId + Debug> IdentityHandlerFactory<I> for IdentityManagerFactory
type Filter = Mutex<RawMutex, IdentityManager>
type Filter = Mutex<RawMutex, IdentityManager>
The type of filter this factory constructs. Read more
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
. Read moreimpl GlobalIdentityHandlerFactory for IdentityManagerFactory
Auto Trait Implementations
impl RefUnwindSafe for IdentityManagerFactory
impl Send for IdentityManagerFactory
impl Sync for IdentityManagerFactory
impl Unpin for IdentityManagerFactory
impl UnwindSafe for IdentityManagerFactory
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more