pub struct PrimarySelectionSource { /* private fields */ }
Expand description
A primary selection source for sending data through copy/paste.
Implementations§
source§impl PrimarySelectionSource
impl PrimarySelectionSource
sourcepub fn new<F, S, It>(
manager: &PrimarySelectionDeviceManager,
mime_types: It,
callback: F
) -> Selfwhere
F: FnMut(PrimarySelectionSourceEvent, DispatchData<'_>) + 'static,
S: Into<String>,
It: IntoIterator<Item = S>,
pub fn new<F, S, It>(
manager: &PrimarySelectionDeviceManager,
mime_types: It,
callback: F
) -> Selfwhere
F: FnMut(PrimarySelectionSourceEvent, DispatchData<'_>) + 'static,
S: Into<String>,
It: IntoIterator<Item = S>,
Create a new primary selection source.
You’ll then need to provide a primary selection device to send via selection.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PrimarySelectionSource
impl Send for PrimarySelectionSource
impl Sync for PrimarySelectionSource
impl Unpin for PrimarySelectionSource
impl !UnwindSafe for PrimarySelectionSource
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