Function buf_redux::set_drop_err_handler
source · Expand description
Set a thread-local handler for errors thrown in BufWriter
’s Drop
impl.
The Write
impl, buffer (at the time of the erroring write) and IO error are provided.
Replaces the previous handler. By default this is a no-op.
Panics
If called from within a handler previously provided to this function.