Skip to main content

set_write_failure_sink

Function set_write_failure_sink 

Source
pub fn set_write_failure_sink(sink: WriteFailureSink)
Expand description

Register a process-wide sink invoked whenever any DebouncedWriter permanently discards a queued write (see WriteFailureSink). There is only one slot: a later call replaces an earlier one. teksilo-app uses this to forward the failure to the UI thread as a typed AppEvent.