pub struct ComponentManagerDelegate { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl ComponentManager for ComponentManagerDelegate
impl ComponentManager for ComponentManagerDelegate
Source§fn get_by_namespace(&self, namespace: &str) -> Components
fn get_by_namespace(&self, namespace: &str) -> Components
Returns all components of the given namespace.
Source§fn has(&self, ty: &ComponentTypeId) -> bool
fn has(&self, ty: &ComponentTypeId) -> bool
Returns true, if a component with the given name exists.
Source§fn has_by_type(&self, namespace: &str, type_name: &str) -> bool
fn has_by_type(&self, namespace: &str, type_name: &str) -> bool
Returns true, if a component with the given fully qualified name exists.
Source§fn get(&self, ty: &ComponentTypeId) -> Option<Component>
fn get(&self, ty: &ComponentTypeId) -> Option<Component>
Returns the component with the given name or empty.
Source§fn get_by_type(&self, namespace: &str, type_name: &str) -> Option<Component>
fn get_by_type(&self, namespace: &str, type_name: &str) -> Option<Component>
Returns the component with the given fully qualified name or empty.
Source§fn find_by_type_name(&self, search: &str) -> Components
fn find_by_type_name(&self, search: &str) -> Components
Returns all components whose names matches the given search string.
Source§fn count_by_namespace(&self, namespace: &str) -> usize
fn count_by_namespace(&self, namespace: &str) -> usize
Returns the count of components of the given namespace.
Source§fn create(
&self,
ty: &ComponentTypeId,
description: &str,
properties: PropertyTypes,
extensions: Extensions,
) -> Result<Component, ComponentCreationError>
fn create( &self, ty: &ComponentTypeId, description: &str, properties: PropertyTypes, extensions: Extensions, ) -> Result<Component, ComponentCreationError>
Creates a new component with the given name and the given properties.
Source§fn replace(&self, ty: &ComponentTypeId, component: Component)
fn replace(&self, ty: &ComponentTypeId, component: Component)
Replaces the component with the given name with the given component.
Source§fn update_description(
&self,
ty: &ComponentTypeId,
description: &str,
) -> Result<Component, ComponentUpdateError>
fn update_description( &self, ty: &ComponentTypeId, description: &str, ) -> Result<Component, ComponentUpdateError>
Updates the description of the given component.
Source§fn add_property(
&self,
ty: &ComponentTypeId,
property: PropertyType,
) -> Result<PropertyType, ComponentAddPropertyError>
fn add_property( &self, ty: &ComponentTypeId, property: PropertyType, ) -> Result<PropertyType, ComponentAddPropertyError>
Adds a property to the component with the given name.
Source§fn update_property(
&self,
ty: &ComponentTypeId,
property_name: &str,
property: PropertyType,
) -> Result<PropertyType, ComponentUpdatePropertyError>
fn update_property( &self, ty: &ComponentTypeId, property_name: &str, property: PropertyType, ) -> Result<PropertyType, ComponentUpdatePropertyError>
Adds a property to the component with the given name.
Source§fn remove_property(
&self,
ty: &ComponentTypeId,
property_name: &str,
) -> Result<PropertyType, ComponentRemovePropertyError>
fn remove_property( &self, ty: &ComponentTypeId, property_name: &str, ) -> Result<PropertyType, ComponentRemovePropertyError>
Removes the property with the given property_name from the component with the given name.
Source§fn add_extension(
&self,
ty: &ComponentTypeId,
extension: Extension,
) -> Result<ExtensionTypeId, ComponentAddExtensionError>
fn add_extension( &self, ty: &ComponentTypeId, extension: Extension, ) -> Result<ExtensionTypeId, ComponentAddExtensionError>
Adds an extension to the component with the given name.
Source§fn update_extension(
&self,
component_ty: &ComponentTypeId,
extension_ty: &ExtensionTypeId,
extension: Extension,
) -> Result<Extension, ComponentUpdateExtensionError>
fn update_extension( &self, component_ty: &ComponentTypeId, extension_ty: &ExtensionTypeId, extension: Extension, ) -> Result<Extension, ComponentUpdateExtensionError>
Replaces the extension of the given component.
Source§fn remove_extension(
&self,
component_ty: &ComponentTypeId,
extension_ty: &ExtensionTypeId,
) -> Result<Extension, ComponentRemoveExtensionError>
fn remove_extension( &self, component_ty: &ComponentTypeId, extension_ty: &ExtensionTypeId, ) -> Result<Extension, ComponentRemoveExtensionError>
Removes the extension with the given type from the component with the given type.
Auto Trait Implementations§
impl Freeze for ComponentManagerDelegate
impl !RefUnwindSafe for ComponentManagerDelegate
impl Send for ComponentManagerDelegate
impl Sync for ComponentManagerDelegate
impl Unpin for ComponentManagerDelegate
impl !UnwindSafe for ComponentManagerDelegate
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