pub enum WorldError {
EntityNotFound(EntityId),
ComponentNotFound {
entity_id: EntityId,
component_name: &'static str,
},
PartialRemoval {
succeeded: Vec<EntityId>,
failed: Vec<EntityId>,
},
// some variants omitted
}Expand description
Errors that can occur when interacting with the World.
Variants§
EntityNotFound(EntityId)
The specified entity was not found in the world.
ComponentNotFound
The requested component type was not found on the entity.
PartialRemoval
Batch removal completed with some failures. Contains the list of successfully removed entities and failed entities.
Trait Implementations§
Source§impl Clone for WorldError
impl Clone for WorldError
Source§fn clone(&self) -> WorldError
fn clone(&self) -> WorldError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorldError
impl Debug for WorldError
Source§impl Display for WorldError
impl Display for WorldError
Source§impl Error for WorldError
impl Error for WorldError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for WorldError
impl PartialEq for WorldError
impl Eq for WorldError
impl StructuralPartialEq for WorldError
Auto Trait Implementations§
impl Freeze for WorldError
impl RefUnwindSafe for WorldError
impl Send for WorldError
impl Sync for WorldError
impl Unpin for WorldError
impl UnwindSafe for WorldError
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