pub(crate) fn watch(
socket_path: &str,
callback: Arc<dyn SelectionWatch>,
) -> Result<(), String>Expand description
Report every selection change on socket_path (including the one current at
start) to callback(mimes: list[str]) from a background thread, a cleared
selection as no mimes. A second watch on the same socket replaces the first.