Struct copypasta_ext::osc52::Osc52ClipboardContext[][src]

pub struct Osc52ClipboardContext;

OSC 52 escape sequence to set clipboard contents.

See module documentation for more information.

Implementations

impl Osc52ClipboardContext[src]

pub fn new() -> Result<Self, Box<dyn StdError>>[src]

pub fn new_with<G>(
    get: G
) -> Result<CombinedClipboardContext<G, Self>, Box<dyn StdError>> where
    G: ClipboardProvider
[src]

Construct combined with another context for getting the clipboard.

This clipboard context only supports setting the clipboard contents. You can combine this with the given context to support getting clipboard contents as well to get the best of both worlds.

pub fn with<G>(
    self,
    get: G
) -> Result<CombinedClipboardContext<G, Self>, Box<dyn StdError>> where
    G: ClipboardProvider
[src]

Combine this context with [X11ClipboardContext][X11ClipboardContext].

This clipboard context only supports setting the clipboard contents. You can combine this with the given context to support getting clipboard contents as well to get the best of both worlds.

Trait Implementations

impl ClipboardProvider for Osc52ClipboardContext[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.