pub trait HandleError<Out = ()> {
// Required method
fn handle_error_with(
self,
error_handler: fn(_: BevyError, _: ErrorContext),
) -> impl Command;
// Provided method
fn handle_error(self) -> impl Command
where Self: Sized { ... }
}
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
Provided Methods§
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.