pub trait HandleError<Out = ()>: Send + 'static {
// Required methods
fn handle_error_with(
self,
error_handler: fn(BevyError, ErrorContext),
) -> impl Command;
fn handle_error(self) -> impl Command;
fn ignore_error(self) -> impl Command;
}
Expand description
Required Methods§
Sourcefn handle_error_with(
self,
error_handler: fn(BevyError, ErrorContext),
) -> impl Command
fn handle_error_with( self, error_handler: fn(BevyError, ErrorContext), ) -> impl Command
Sourcefn handle_error(self) -> impl Command
fn handle_error(self) -> impl Command
Sourcefn ignore_error(self) -> impl Command
fn ignore_error(self) -> impl Command
Takes a Command
that returns a Result and ignores any error that occurs.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.