#[non_exhaustive]pub enum RequiredComponentsError {
DuplicateRegistration(ComponentId, ComponentId),
CyclicRequirement(ComponentId, ComponentId),
ArchetypeExists(ComponentId),
}Expand description
An error returned when the registration of a required component fails.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DuplicateRegistration(ComponentId, ComponentId)
The component is already a directly required component for the requiree.
CyclicRequirement(ComponentId, ComponentId)
Adding the given requirement would create a cycle.
ArchetypeExists(ComponentId)
An archetype with the component that requires other components already exists
Trait Implementations§
Source§impl Debug for RequiredComponentsError
impl Debug for RequiredComponentsError
Source§impl Display for RequiredComponentsError
impl Display for RequiredComponentsError
Source§impl Error for RequiredComponentsError
impl Error for RequiredComponentsError
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()
Auto Trait Implementations§
impl Freeze for RequiredComponentsError
impl RefUnwindSafe for RequiredComponentsError
impl Send for RequiredComponentsError
impl Sync for RequiredComponentsError
impl Unpin for RequiredComponentsError
impl UnwindSafe for RequiredComponentsError
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
Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.