pub struct EntityInstanceManagerDelegate { /* private fields */ }Implementations§
Trait Implementations§
Source§impl EntityInstanceManager for EntityInstanceManagerDelegate
impl EntityInstanceManager for EntityInstanceManagerDelegate
Source§fn has(&self, id: Uuid) -> bool
fn has(&self, id: Uuid) -> bool
Returns true, if an entity instance exists with the given UUID.
Source§fn get(&self, id: Uuid) -> Option<ReactiveEntity>
fn get(&self, id: Uuid) -> Option<ReactiveEntity>
Returns the reactive entity instance with the given UUID or None.
Source§fn get_by_label(&self, label: &str) -> Option<ReactiveEntity>
fn get_by_label(&self, label: &str) -> Option<ReactiveEntity>
Returns the reactive entity instance with the given label or None.
Source§fn get_by_label_with_params(
&self,
label: &str,
) -> Option<(ReactiveEntity, HashMap<String, String>)>
fn get_by_label_with_params( &self, label: &str, ) -> Option<(ReactiveEntity, HashMap<String, String>)>
Returns the reactive entity instance and the matched path parameters that matches the given label or None.
/io/reactive-graph/local/users/:user_id
/io/reactive-graph/local/users/PeterPenacka returns: (instance, {“user_id”: “PeterPenacka”})
Source§fn get_by_type(&self, ty: &EntityTypeId) -> Vec<ReactiveEntity>
fn get_by_type(&self, ty: &EntityTypeId) -> Vec<ReactiveEntity>
Returns all reactive entity instances of the given type.
Source§fn count_by_type(&self, ty: &EntityTypeId) -> usize
fn count_by_type(&self, ty: &EntityTypeId) -> usize
Returns the count of registered reactive entity instances of the given type.
Source§fn count_by_component(&self, component: &ComponentTypeId) -> usize
fn count_by_component(&self, component: &ComponentTypeId) -> usize
Returns the count of registered reactive entity instances which are of the given component.
Source§fn count_by_behaviour(&self, behaviour_ty: &BehaviourTypeId) -> usize
fn count_by_behaviour(&self, behaviour_ty: &BehaviourTypeId) -> usize
Returns the count of registered reactive entity instances which behaves as the given behaviour.
Source§fn create(
&self,
entity_instance: EntityInstance,
) -> Result<ReactiveEntity, ReactiveEntityCreationError>
fn create( &self, entity_instance: EntityInstance, ) -> Result<ReactiveEntity, ReactiveEntityCreationError>
Creates a new reactive entity instance.
Source§fn register(
&self,
reactive_entity: ReactiveEntity,
) -> Result<ReactiveEntity, ReactiveEntityRegistrationError>
fn register( &self, reactive_entity: ReactiveEntity, ) -> Result<ReactiveEntity, ReactiveEntityRegistrationError>
Registers a reactive entity instance and applies components and behaviours.
Source§fn add_component(
&self,
id: Uuid,
component: &ComponentTypeId,
) -> Result<(), ReactiveEntityComponentAddError>
fn add_component( &self, id: Uuid, component: &ComponentTypeId, ) -> Result<(), ReactiveEntityComponentAddError>
Adds the component with the given name to the entity instance with the given id.
Source§fn remove_component(&self, id: Uuid, component: &ComponentTypeId)
fn remove_component(&self, id: Uuid, component: &ComponentTypeId)
Removes the component with the given name from the entity instance with the given id.
Auto Trait Implementations§
impl Freeze for EntityInstanceManagerDelegate
impl !RefUnwindSafe for EntityInstanceManagerDelegate
impl Send for EntityInstanceManagerDelegate
impl Sync for EntityInstanceManagerDelegate
impl Unpin for EntityInstanceManagerDelegate
impl !UnwindSafe for EntityInstanceManagerDelegate
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