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 (const: unstable) · 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
Source§impl TryInto<ClipboardType> for LinuxClipboardKind
impl TryInto<ClipboardType> for LinuxClipboardKind
Source§impl TryInto<ClipboardType> for LinuxClipboardKind
impl TryInto<ClipboardType> 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 UnsafeUnpin 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for 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