Trait Dedup
Source pub trait Dedup: Display {
type ID: Hash + Eq + Send + Sync + 'static;
// Required method
fn identify(&self) -> Self::ID;
// Provided method
fn cooldown(&self) -> Duration { ... }
}
Expand description
An error type with a cooldown and a category.
This is used by Log to avoid repetitively logging
the same error. This avoids spamming errors in the console.
Used to de-duplicate identical messages to avoid spamming the log.
What constitutes “distinct” error types.
How long an error must not be produced in order to be displayed again.
This controls when Log returns an error.
If it returns Duration::ZERO, Log will print the error each time
it is emitted, acting like LogSimply.
By default, only print a single error per system.
By default, only print a single error per system.