Struct wgpu::core::identity::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§
source§impl Debug for IdentityManagerFactory
impl Debug for IdentityManagerFactory
source§impl<I> IdentityHandlerFactory<I> for IdentityManagerFactorywhere
I: TypedId,
impl<I> IdentityHandlerFactory<I> for IdentityManagerFactorywhere
I: TypedId,
type Input = ()
fn autogenerate_ids() -> bool
fn input_to_id( _id_in: <IdentityManagerFactory as IdentityHandlerFactory<I>>::Input ) -> I
source§fn spawn(&self) -> Arc<IdentityManager<I>>
fn spawn(&self) -> Arc<IdentityManager<I>>
Create an
IdentityManager<I>
implementation that can
transform proto-ids into ids of type I
.
It can return None if ids are passed from outside
and are not generated by wgpuimpl 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more