pub trait ResultExt<T> {
// Required method
fn warn_on_err_once(self, msg: impl Display) -> Option<T>;
}
Required Methods§
fn warn_on_err_once(self, msg: impl Display) -> Option<T>
Implementations on Foreign Types§
source§impl<T, E: Display> ResultExt<T> for Result<T, E>
impl<T, E: Display> ResultExt<T> for Result<T, E>
source§fn warn_on_err_once(self, msg: impl Display) -> Option<T>
fn warn_on_err_once(self, msg: impl Display) -> Option<T>
Log a warning if there is an Err
, but only log the exact same message once.