Struct copypasta_ext::x11_fork::X11ForkClipboardContext
source · pub struct X11ForkClipboardContext<S = Clipboard>(_)
where
S: Selection;
Expand description
Like X11ClipboardContext
, but forks to set contents.
set_contents
forks the process, get_contents
is an alias for
X11ClipboardContext::get_contents
.
See module documentation for more information.
Implementations§
source§impl X11ForkClipboardContext
impl X11ForkClipboardContext
pub fn new() -> ClipResult<Self>
Trait Implementations§
source§impl<S> ClipboardProvider for X11ForkClipboardContext<S>where
S: Selection,
impl<S> ClipboardProvider for X11ForkClipboardContext<S>where S: Selection,
source§fn get_contents(&mut self) -> ClipResult<String>
fn get_contents(&mut self) -> ClipResult<String>
Method to get the clipboard contents as a String
source§fn set_contents(&mut self, contents: String) -> ClipResult<()>
fn set_contents(&mut self, contents: String) -> ClipResult<()>
Method to set the clipboard contents as a String
source§impl<S> ClipboardProviderExt for X11ForkClipboardContext<S>where
S: Selection,
impl<S> ClipboardProviderExt for X11ForkClipboardContext<S>where S: Selection,
source§fn display_server(&self) -> Option<DisplayServer>
fn display_server(&self) -> Option<DisplayServer>
Get related display server.
source§fn 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.