pub struct RelationComponentBehaviourRegistryImpl { /* private fields */ }
Trait Implementations§
Source§impl Component for RelationComponentBehaviourRegistryImpl
impl Component for RelationComponentBehaviourRegistryImpl
Source§impl ComponentDowncast<RelationComponentBehaviourRegistryImpl> for RelationComponentBehaviourRegistryImpl
impl ComponentDowncast<RelationComponentBehaviourRegistryImpl> for RelationComponentBehaviourRegistryImpl
Source§impl ComponentDowncast<RelationComponentBehaviourRegistryImpl> for dyn RelationComponentBehaviourRegistry + Sync + Send
impl ComponentDowncast<RelationComponentBehaviourRegistryImpl> for dyn RelationComponentBehaviourRegistry + Sync + Send
Source§impl Lifecycle for RelationComponentBehaviourRegistryImpl
impl Lifecycle for RelationComponentBehaviourRegistryImpl
§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
Source§impl RelationComponentBehaviourRegistry for RelationComponentBehaviourRegistryImpl
impl RelationComponentBehaviourRegistry for RelationComponentBehaviourRegistryImpl
Source§fn register(
&self,
component_behaviour_ty: ComponentBehaviourTypeId,
factory: Arc<dyn BehaviourFactory<RelationInstanceId, ReactiveRelation> + Send + Sync>,
)
fn register( &self, component_behaviour_ty: ComponentBehaviourTypeId, factory: Arc<dyn BehaviourFactory<RelationInstanceId, ReactiveRelation> + Send + Sync>, )
Registers a factory for creating relation component behaviours.
Source§fn unregister(&self, component_behaviour_ty: &ComponentBehaviourTypeId)
fn unregister(&self, component_behaviour_ty: &ComponentBehaviourTypeId)
Unregisters a factory for creating relation component behaviours.
Source§fn get(
&self,
component_ty: &ComponentTypeId,
) -> Vec<Arc<dyn BehaviourFactory<RelationInstanceId, ReactiveRelation> + Send + Sync>>
fn get( &self, component_ty: &ComponentTypeId, ) -> Vec<Arc<dyn BehaviourFactory<RelationInstanceId, ReactiveRelation> + Send + Sync>>
Returns the relation behaviour factories for the given component type.
Source§fn get_behaviour_types(
&self,
component_ty: &ComponentTypeId,
) -> Vec<ComponentBehaviourTypeId>
fn get_behaviour_types( &self, component_ty: &ComponentTypeId, ) -> Vec<ComponentBehaviourTypeId>
Returns the component behaviours for the given component type.
Source§fn get_by_behaviour_type(
&self,
behaviour_ty: &BehaviourTypeId,
) -> Option<ComponentBehaviourTypeId>
fn get_by_behaviour_type( &self, behaviour_ty: &BehaviourTypeId, ) -> Option<ComponentBehaviourTypeId>
Returns the entity behaviour for the given behaviour type if the relation component behaviour exists.
impl Injectable for RelationComponentBehaviourRegistryImpl
Auto Trait Implementations§
impl Freeze for RelationComponentBehaviourRegistryImpl
impl !RefUnwindSafe for RelationComponentBehaviourRegistryImpl
impl Send for RelationComponentBehaviourRegistryImpl
impl Sync for RelationComponentBehaviourRegistryImpl
impl Unpin for RelationComponentBehaviourRegistryImpl
impl !UnwindSafe for RelationComponentBehaviourRegistryImpl
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