pub struct Master<H> { /* private fields */ }Expand description
Clipboard master.
Tracks changes of clipboard and invokes corresponding callbacks.
§Platform notes:
- On
windowsit creates dummy window that monitors each clipboard change message.
Implementations§
Source§impl<H: ClipboardHandler> Master<H>
impl<H: ClipboardHandler> Master<H>
Sourcepub fn shutdown_channel(&self) -> Shutdown
pub fn shutdown_channel(&self) -> Shutdown
Creates shutdown channel.
Sourcepub fn x11_clipboard() -> &'static Result<Clipboard, Error>
pub fn x11_clipboard() -> &'static Result<Clipboard, Error>
Gets one time initialized x11 clipboard.
This is only available on linux
Prefer to use it on Linux as underlying x11-clipboard crate has buggy dtor
and doesn’t clean up all resources associated with Clipboard
You should use load with no timeout on every callback call
Auto Trait Implementations§
impl<H> Freeze for Master<H>where
H: Freeze,
impl<H> RefUnwindSafe for Master<H>where
H: RefUnwindSafe,
impl<H> Send for Master<H>where
H: Send,
impl<H> !Sync for Master<H>
impl<H> Unpin for Master<H>where
H: Unpin,
impl<H> UnwindSafe for Master<H>where
H: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more