pub struct PrimarySelectionSource { /* private fields */ }
Expand description
A primary selection source for sending data through copy/paste.
Implementations
sourceimpl PrimarySelectionSource
impl PrimarySelectionSource
sourcepub fn new<F, S, It>(
manager: &PrimarySelectionDeviceManager,
mime_types: It,
callback: F
) -> Self where
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
) -> Self where
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more