try_write

Function try_write 

Source
pub fn try_write<T>(
    f: impl FnOnce(&mut BoxDynTryDropStrategy) -> T,
) -> Result<T, UninitializedError>
Expand description

Try to get a mutable reference to the current fallback thread local handler.

ยงErrors

If the fallback thread local handler is not initialized yet, this function will return an error.