Struct copypasta_ext::osc52::Osc52ClipboardContext [−][src]
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]
get: G
) -> Result<CombinedClipboardContext<G, Self>, Box<dyn StdError>> where
G: ClipboardProvider,
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]
self,
get: G
) -> Result<CombinedClipboardContext<G, Self>, Box<dyn StdError>> where
G: ClipboardProvider,
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]
fn get_contents(&mut self) -> ClipResult<String>
[src]
fn set_contents(&mut self, contents: String) -> ClipResult<()>
[src]
Auto Trait Implementations
impl RefUnwindSafe for Osc52ClipboardContext
impl Send for Osc52ClipboardContext
impl Sync for Osc52ClipboardContext
impl Unpin for Osc52ClipboardContext
impl UnwindSafe for Osc52ClipboardContext
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>,