pub struct RelationComponentBehaviourManagerImpl { /* private fields */ }
Trait Implementations§
Source§impl Component for RelationComponentBehaviourManagerImpl
impl Component for RelationComponentBehaviourManagerImpl
Source§impl ComponentDowncast<RelationComponentBehaviourManagerImpl> for RelationComponentBehaviourManagerImpl
impl ComponentDowncast<RelationComponentBehaviourManagerImpl> for RelationComponentBehaviourManagerImpl
Source§impl ComponentDowncast<RelationComponentBehaviourManagerImpl> for dyn RelationComponentBehaviourManager + Sync + Send
impl ComponentDowncast<RelationComponentBehaviourManagerImpl> for dyn RelationComponentBehaviourManager + Sync + Send
Source§impl Lifecycle for RelationComponentBehaviourManagerImpl
impl Lifecycle for RelationComponentBehaviourManagerImpl
§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 RelationComponentBehaviourManager for RelationComponentBehaviourManagerImpl
impl RelationComponentBehaviourManager for RelationComponentBehaviourManagerImpl
Source§fn add_behaviours_to_relation(&self, relation_instance: ReactiveRelation)
fn add_behaviours_to_relation(&self, relation_instance: ReactiveRelation)
Adds new behaviours to the given relation instance.
Source§fn add_behaviours_to_relation_component(
&self,
relation_instance: ReactiveRelation,
component: Component,
)
fn add_behaviours_to_relation_component( &self, relation_instance: ReactiveRelation, component: Component, )
Possibly adds new behaviour to the given relation instance’s component
Source§fn add_behaviour_to_relation_component(
&self,
relation_instance: ReactiveRelation,
component_behaviour_ty: &ComponentBehaviourTypeId,
)
fn add_behaviour_to_relation_component( &self, relation_instance: ReactiveRelation, component_behaviour_ty: &ComponentBehaviourTypeId, )
Creates and adds the given behaviour to the given reactive entity instance’s component.
Source§fn remove_behaviour_from_relation(
&self,
relation_instance: ReactiveRelation,
behaviour_ty: &BehaviourTypeId,
)
fn remove_behaviour_from_relation( &self, relation_instance: ReactiveRelation, behaviour_ty: &BehaviourTypeId, )
Removes the given behaviour from the given reactive relation instance.
Source§fn remove_behaviours_from_relation(&self, relation_instance: ReactiveRelation)
fn remove_behaviours_from_relation(&self, relation_instance: ReactiveRelation)
Removes behaviours from the given relation instance.
Source§fn remove_behaviours_from_relation_component(
&self,
relation_instance: ReactiveRelation,
component: Component,
)
fn remove_behaviours_from_relation_component( &self, relation_instance: ReactiveRelation, component: Component, )
Removes behaviour from the given relation instance’s component
Source§fn remove_behaviours_by_key(&self, relation_instance_id: &RelationInstanceId)
fn remove_behaviours_by_key(&self, relation_instance_id: &RelationInstanceId)
Removes behaviours from the given relation instance by relation instance id.
Source§fn remove_behaviours_by_behaviour(&self, behaviour_ty: &BehaviourTypeId)
fn remove_behaviours_by_behaviour(&self, behaviour_ty: &BehaviourTypeId)
Removes all behaviours of the given behaviour type.
Source§fn has(
&self,
relation_instance: ReactiveRelation,
behaviour_ty: &BehaviourTypeId,
) -> bool
fn has( &self, relation_instance: ReactiveRelation, behaviour_ty: &BehaviourTypeId, ) -> bool
Returns true, if the relation instance has the given behaviour.
Source§fn get_all(&self, relation_instance: ReactiveRelation) -> Vec<BehaviourTypeId>
fn get_all(&self, relation_instance: ReactiveRelation) -> Vec<BehaviourTypeId>
Returns the behaviours of the given relation instance.
Source§fn get_instances_by_behaviour(
&self,
ty: &BehaviourTypeId,
) -> Vec<ReactiveRelation>
fn get_instances_by_behaviour( &self, ty: &BehaviourTypeId, ) -> Vec<ReactiveRelation>
Returns the relation instances with the given behaviour.
Source§fn connect(
&self,
relation_instance: ReactiveRelation,
behaviour_ty: &BehaviourTypeId,
) -> Result<(), BehaviourTransitionError>
fn connect( &self, relation_instance: ReactiveRelation, behaviour_ty: &BehaviourTypeId, ) -> Result<(), BehaviourTransitionError>
Connect
Source§fn disconnect(
&self,
relation_instance: ReactiveRelation,
behaviour_ty: &BehaviourTypeId,
) -> Result<(), BehaviourTransitionError>
fn disconnect( &self, relation_instance: ReactiveRelation, behaviour_ty: &BehaviourTypeId, ) -> Result<(), BehaviourTransitionError>
Disconnect
impl Injectable for RelationComponentBehaviourManagerImpl
Auto Trait Implementations§
impl Freeze for RelationComponentBehaviourManagerImpl
impl !RefUnwindSafe for RelationComponentBehaviourManagerImpl
impl Send for RelationComponentBehaviourManagerImpl
impl Sync for RelationComponentBehaviourManagerImpl
impl Unpin for RelationComponentBehaviourManagerImpl
impl !UnwindSafe for RelationComponentBehaviourManagerImpl
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