pub struct EntityBehaviourRegistryImpl { /* private fields */ }
Trait Implementations§
Source§impl Component for EntityBehaviourRegistryImpl
impl Component for EntityBehaviourRegistryImpl
Source§impl ComponentDowncast<EntityBehaviourRegistryImpl> for EntityBehaviourRegistryImpl
impl ComponentDowncast<EntityBehaviourRegistryImpl> for EntityBehaviourRegistryImpl
Source§impl ComponentDowncast<EntityBehaviourRegistryImpl> for dyn EntityBehaviourRegistry + Sync + Send
impl ComponentDowncast<EntityBehaviourRegistryImpl> for dyn EntityBehaviourRegistry + Sync + Send
Source§impl EntityBehaviourRegistry for EntityBehaviourRegistryImpl
impl EntityBehaviourRegistry for EntityBehaviourRegistryImpl
Source§fn register(
&self,
entity_behaviour_ty: EntityBehaviourTypeId,
factory: Arc<dyn BehaviourFactory<Uuid, ReactiveEntity> + Send + Sync>,
)
fn register( &self, entity_behaviour_ty: EntityBehaviourTypeId, factory: Arc<dyn BehaviourFactory<Uuid, ReactiveEntity> + Send + Sync>, )
Registers a factory for creating entity behaviours.
Source§fn unregister(&self, entity_behaviour_ty: &EntityBehaviourTypeId)
fn unregister(&self, entity_behaviour_ty: &EntityBehaviourTypeId)
Unregisters a factory for creating entity behaviours.
Source§fn get(
&self,
entity_ty: &EntityTypeId,
) -> Vec<Arc<dyn BehaviourFactory<Uuid, ReactiveEntity> + Send + Sync>>
fn get( &self, entity_ty: &EntityTypeId, ) -> Vec<Arc<dyn BehaviourFactory<Uuid, ReactiveEntity> + Send + Sync>>
Returns the entity behaviour factories for the given entity type.
Source§fn get_factory_by_behaviour_type(
&self,
behaviour_ty: &BehaviourTypeId,
) -> Option<Arc<dyn BehaviourFactory<Uuid, ReactiveEntity> + Send + Sync>>
fn get_factory_by_behaviour_type( &self, behaviour_ty: &BehaviourTypeId, ) -> Option<Arc<dyn BehaviourFactory<Uuid, ReactiveEntity> + Send + Sync>>
Returns the entity behaviour for the given behaviour type if the entity behaviour exists.
Source§fn get_behaviour_types(
&self,
entity_ty: &EntityTypeId,
) -> Vec<EntityBehaviourTypeId>
fn get_behaviour_types( &self, entity_ty: &EntityTypeId, ) -> Vec<EntityBehaviourTypeId>
Returns the entity behaviours for the given entity type.
Source§fn get_by_behaviour_type(
&self,
behaviour_ty: &BehaviourTypeId,
) -> Option<EntityBehaviourTypeId>
fn get_by_behaviour_type( &self, behaviour_ty: &BehaviourTypeId, ) -> Option<EntityBehaviourTypeId>
Returns the entity behaviour for the given behaviour type if the entity behaviour exists.
Source§impl Lifecycle for EntityBehaviourRegistryImpl
impl Lifecycle for EntityBehaviourRegistryImpl
§fn init<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn init<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Called at initialization
§fn post_init<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn post_init<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Called after initialization
impl Injectable for EntityBehaviourRegistryImpl
Auto Trait Implementations§
impl Freeze for EntityBehaviourRegistryImpl
impl !RefUnwindSafe for EntityBehaviourRegistryImpl
impl Send for EntityBehaviourRegistryImpl
impl Sync for EntityBehaviourRegistryImpl
impl Unpin for EntityBehaviourRegistryImpl
impl !UnwindSafe for EntityBehaviourRegistryImpl
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more