Trait copypasta_ext::ClipboardProviderExt
source · pub trait ClipboardProviderExt: ClipboardProvider {
// Required method
fn display_server(&self) -> Option<DisplayServer>;
// Provided method
fn has_bin_lifetime(&self) -> bool { ... }
}
Expand description
Extension trait for clipboard access
Required Methods§
sourcefn display_server(&self) -> Option<DisplayServer>
fn display_server(&self) -> Option<DisplayServer>
Get related display server.
Provided Methods§
sourcefn has_bin_lifetime(&self) -> bool
fn has_bin_lifetime(&self) -> bool
If this clipboard provider only has a clipboard lifetime of the current binary, rather than forever.
Implementations on Foreign Types§
source§impl ClipboardProviderExt for Clipboard
impl ClipboardProviderExt for Clipboard
Wayland clipboards have binary lifetime, not infinite.
fn display_server(&self) -> Option<DisplayServer>
fn has_bin_lifetime(&self) -> bool
source§impl ClipboardProviderExt for X11ClipboardContext
impl ClipboardProviderExt for X11ClipboardContext
X11 clipboards have binary lifetime, not infinite.