Trait arboard::ClearExtLinux

source ·
pub trait ClearExtLinux: Sealed {
    // Required method
    fn clipboard(self, selection: LinuxClipboardKind) -> Result<(), Error>;
}
Expand description

Linux specific extensions to the Clear builder.

Required Methods§

source

fn clipboard(self, selection: LinuxClipboardKind) -> Result<(), Error>

Performs the “clear” operation on the selected clipboard.

§Example
let mut clipboard = Clipboard::new()?;

clipboard
    .clear_with()
    .clipboard(LinuxClipboardKind::Secondary)?;

If wayland support is enabled and available, attempting to use the Secondary clipboard will return an error.

Implementors§