smithay_client_toolkit::primary_selection::device

Trait PrimarySelectionDeviceHandler

Source
pub trait PrimarySelectionDeviceHandler: Sized {
    // Required method
    fn selection(
        &mut self,
        conn: &Connection,
        qh: &QueueHandle<Self>,
        primary_selection_device: &ZwpPrimarySelectionDeviceV1,
    );
}

Required Methods§

Source

fn selection( &mut self, conn: &Connection, qh: &QueueHandle<Self>, primary_selection_device: &ZwpPrimarySelectionDeviceV1, )

The new selection is received.

The given primary selection device could be used to identify PrimarySelectionDevice.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§