Struct copypasta_ext::x11_bin::X11BinClipboardContext[][src]

pub struct X11BinClipboardContext(_);

Invokes xclip/xsel to access clipboard.

See module documentation for more information.

Implementations

impl X11BinClipboardContext[src]

pub fn new() -> ClipResult<Self>[src]

pub fn new_with_x11(
) -> ClipResult<CombinedClipboardContext<X11ClipboardContext, Self>>
[src]

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]

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]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.