Struct copypasta_ext::x11_bin::X11BinClipboardContext
source · pub struct X11BinClipboardContext(_);
Expand description
Implementations§
source§impl X11BinClipboardContext
impl X11BinClipboardContext
pub fn new() -> ClipResult<Self>
sourcepub fn new_with_x11(
) -> ClipResult<CombinedClipboardContext<X11ClipboardContext, Self>>
pub fn new_with_x11( ) -> ClipResult<CombinedClipboardContext<X11ClipboardContext, Self>>
Construct combined with X11ClipboardContext
.
This clipboard context invokes a binary for getting the clipboard contents. This may
be considered inefficient and has other drawbacks as noted in the struct documentation.
This function also constructs a X11ClipboardContext
for getting clipboard contents and
combines the two to get the best of both worlds.
sourcepub fn with_x11(
self
) -> ClipResult<CombinedClipboardContext<X11ClipboardContext, Self>>
pub fn with_x11( self ) -> ClipResult<CombinedClipboardContext<X11ClipboardContext, Self>>
Combine this context with X11ClipboardContext
.
This clipboard context invokes a binary for getting the clipboard contents. This may
be considered inefficient and has other drawbacks as noted in the struct documentation.
This function constructs a X11ClipboardContext
for getting clipboard contents and
combines the two to get the best of both worlds.
Trait Implementations§
source§impl ClipboardProvider for X11BinClipboardContext
impl ClipboardProvider for X11BinClipboardContext
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 ClipboardProviderExt for X11BinClipboardContext
impl ClipboardProviderExt for X11BinClipboardContext
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.