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