Enum arboard::LinuxClipboardKind
source · pub enum LinuxClipboardKind {
Clipboard,
Primary,
Secondary,
}
Expand description
Clipboard selection
Linux has a concept of clipboard “selections” which tend to be used in different contexts. This
enum provides a way to get/set to a specific clipboard (the default
Clipboard
being used for the common platform API). You can choose which
clipboard to use with GetExtLinux::clipboard
and SetExtLinux::clipboard
.
See https://specifications.freedesktop.org/clipboards-spec/clipboards-0.1.txt for a better description of the different clipboards.
Variants§
Clipboard
Typically used selection for explicit cut/copy/paste actions (ie. windows/macos like clipboard behavior)
Primary
Typically used for mouse selections and/or currently selected text. Accessible via middle mouse click.
On Wayland, this may not be available for all systems (requires a compositor supporting version 2 or above) and operations using this will return an error if unsupported.
Secondary
The secondary clipboard is rarely used but theoretically available on X11.
On Wayland, this is not be available and operations using this variant will return an error.
Trait Implementations§
source§impl Clone for LinuxClipboardKind
impl Clone for LinuxClipboardKind
source§fn clone(&self) -> LinuxClipboardKind
fn clone(&self) -> LinuxClipboardKind
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LinuxClipboardKind
impl Debug for LinuxClipboardKind
impl Copy for LinuxClipboardKind
Auto Trait Implementations§
impl Freeze for LinuxClipboardKind
impl RefUnwindSafe for LinuxClipboardKind
impl Send for LinuxClipboardKind
impl Sync for LinuxClipboardKind
impl Unpin for LinuxClipboardKind
impl UnwindSafe for LinuxClipboardKind
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more