Function ethers_solc::report::try_init
source · pub fn try_init<T>(
reporter: T
) -> Result<(), Box<dyn Error + Send + Sync + 'static>>where
T: Reporter + Send + Sync + 'static,
Expand description
Install this Reporter
as the global default if one is
not already set.
Errors
Returns an Error if the initialization was unsuccessful, likely
because a global reporter was already installed by another
call to try_init
.