Trait bevy_mod_sysfail::Failure
source · pub trait Failure {
type Error: FailureMode;
// Required method
fn failure(self) -> Option<Self::Error>;
// Provided method
fn get_error(
self,
time: &Time,
logged_errors: &mut LoggedErrors<Self>
) -> Option<Self::Error>
where Self: Sized { ... }
}
Expand description
Something that can be returned by a function marked with #[sysfail(log)]
.
Required Associated Types§
sourcetype Error: FailureMode
type Error: FailureMode
The actual error’s type in this failure.