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§

source

fn display_server(&self) -> Option<DisplayServer>

Get related display server.

Provided Methods§

source

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

Wayland clipboards have binary lifetime, not infinite.

source§

impl ClipboardProviderExt for X11ClipboardContext

X11 clipboards have binary lifetime, not infinite.

source§

impl ClipboardProviderExt for NopClipboardContext

Implementors§