Enum legion::world::ComponentError [−][src]
pub enum ComponentError {
NotFound {
component_type: ComponentTypeId,
component_name: &'static str,
},
Denied {
component_type: ComponentTypeId,
component_name: &'static str,
},
}
Expand description
An error type which describes why an attempt to retrieve a component failed.
Variants
NotFound
Fields
component_type: ComponentTypeId
The type ID of the component.
component_name: &'static str
The type name of the component.
The component was not found on the entity.
Denied
Fields
component_type: ComponentTypeId
The type ID of the component.
component_name: &'static str
The type name of the component.
The world does not allow access to the component.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ComponentError
impl Send for ComponentError
impl Sync for ComponentError
impl Unpin for ComponentError
impl UnwindSafe for ComponentError
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more