pub trait ClearExtLinux: Sealed {
// Required method
fn clipboard(self, selection: LinuxClipboardKind) -> Result<(), Error>;
}Expand description
Linux specific extensions to the Clear builder.
Required Methods§
Sourcefn clipboard(self, selection: LinuxClipboardKind) -> Result<(), Error>
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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".