pub(crate) fn write(
socket_path: &str,
entries: Vec<(String, Vec<u8>)>,
) -> Result<(), String>Expand description
Take the selection, serving entries (mime, bytes) to every paster from a
detached thread until another client takes the selection (or the compositor
goes away). The selection is compositor-acknowledged when this returns, so a
caller may immediately trigger a paste against it. Replacing a previous
write is implicit: the compositor cancels the old source when the new one
takes the selection.