Struct copypasta_ext::x11_bin::X11BinClipboardContext [−][src]
Implementations
impl X11BinClipboardContext
[src]
pub fn new() -> ClipResult<Self>
[src]
pub fn new_with_x11(
) -> ClipResult<CombinedClipboardContext<X11ClipboardContext, Self>>
[src]
) -> 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.
pub fn with_x11(
self
) -> ClipResult<CombinedClipboardContext<X11ClipboardContext, Self>>
[src]
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
impl ClipboardProvider for X11BinClipboardContext
[src]
fn get_contents(&mut self) -> ClipResult<String>
[src]
fn set_contents(&mut self, contents: String) -> ClipResult<()>
[src]
Auto Trait Implementations
impl RefUnwindSafe for X11BinClipboardContext
impl Send for X11BinClipboardContext
impl Sync for X11BinClipboardContext
impl Unpin for X11BinClipboardContext
impl UnwindSafe for X11BinClipboardContext
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,