pub enum EntityCommandError<E> {
EntityFetchError(EntityMutableFetchError),
CommandFailed(E),
}Expand description
An error that occurs when running an EntityCommand on a specific entity.
Variants§
EntityFetchError(EntityMutableFetchError)
The entity this EntityCommand tried to run on could not be fetched.
CommandFailed(E)
An error that occurred while running the EntityCommand.
Trait Implementations§
Source§impl<E: Debug> Debug for EntityCommandError<E>
impl<E: Debug> Debug for EntityCommandError<E>
Source§impl<E> Display for EntityCommandError<E>where
E: Display,
impl<E> Display for EntityCommandError<E>where
E: Display,
Source§impl<E> Error for EntityCommandError<E>
impl<E> Error for EntityCommandError<E>
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<E> From<EntityMutableFetchError> for EntityCommandError<E>
impl<E> From<EntityMutableFetchError> for EntityCommandError<E>
Source§fn from(source: EntityMutableFetchError) -> Self
fn from(source: EntityMutableFetchError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Freeze for EntityCommandError<E>where
E: Freeze,
impl<E> RefUnwindSafe for EntityCommandError<E>where
E: RefUnwindSafe,
impl<E> Send for EntityCommandError<E>where
E: Send,
impl<E> Sync for EntityCommandError<E>where
E: Sync,
impl<E> Unpin for EntityCommandError<E>where
E: Unpin,
impl<E> UnwindSafe for EntityCommandError<E>where
E: UnwindSafe,
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.