overnet_core

Function log_errors

Source
pub async fn log_errors(
    f: impl Send + Future<Output = Result<(), Error>>,
    message: impl Display,
)
Expand description

Takes a future that returns an error, and transforms it to a future that logs said error