pub struct RelationComponentBehaviourRegistryDelegate { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl RelationComponentBehaviourRegistry for RelationComponentBehaviourRegistryDelegate
impl RelationComponentBehaviourRegistry for RelationComponentBehaviourRegistryDelegate
Source§fn register<'life0, 'async_trait>(
&'life0 self,
component_behaviour_ty: ComponentBehaviourTypeId,
factory: Arc<dyn BehaviourFactory<RelationInstanceId, ReactiveRelation> + Send + Sync>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn register<'life0, 'async_trait>(
&'life0 self,
component_behaviour_ty: ComponentBehaviourTypeId,
factory: Arc<dyn BehaviourFactory<RelationInstanceId, ReactiveRelation> + Send + Sync>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Registers a factory for creating relation component behaviours.
If a relation instance has the given component then the given behaviour is applied.
The behaviour will be created using the given RelationBehaviourCreator.
Source§fn unregister<'life0, 'life1, 'async_trait>(
&'life0 self,
component_behaviour_ty: &'life1 ComponentBehaviourTypeId,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn unregister<'life0, 'life1, 'async_trait>(
&'life0 self,
component_behaviour_ty: &'life1 ComponentBehaviourTypeId,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Unregisters a factory for creating relation component behaviours.
fn register_all<'life0, 'life1, 'async_trait>(
&'life0 self,
factories: &'life1 BehaviourFactories<RelationInstanceId, ReactiveRelation>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
§fn unregister_all<'life0, 'life1, 'async_trait>(
&'life0 self,
tys: &'life1 ComponentBehaviourTypeIds,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn unregister_all<'life0, 'life1, 'async_trait>(
&'life0 self,
tys: &'life1 ComponentBehaviourTypeIds,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Unregisters the behaviour factories for the given component behaviour types.
Auto Trait Implementations§
impl Freeze for RelationComponentBehaviourRegistryDelegate
impl !RefUnwindSafe for RelationComponentBehaviourRegistryDelegate
impl Send for RelationComponentBehaviourRegistryDelegate
impl Sync for RelationComponentBehaviourRegistryDelegate
impl Unpin for RelationComponentBehaviourRegistryDelegate
impl !UnwindSafe for RelationComponentBehaviourRegistryDelegate
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