pub trait PrimarySelectionSourceHandler: Sized {
    // Required methods
    fn send_request(
        &mut self,
        conn: &Connection,
        qh: &QueueHandle<Self>,
        source: &ZwpPrimarySelectionSourceV1,
        mime: String,
        write_pipe: WritePipe,
    );
    fn cancelled(
        &mut self,
        conn: &Connection,
        qh: &QueueHandle<Self>,
        source: &ZwpPrimarySelectionSourceV1,
    );
}
Expand description

Handler trait for PrimarySelectionSource events.

The functions defined in this trait are called as DataSource events are received from the compositor.

Required Methods§

source

fn send_request( &mut self, conn: &Connection, qh: &QueueHandle<Self>, source: &ZwpPrimarySelectionSourceV1, mime: String, write_pipe: WritePipe, )

The client has requested the data for this source to be sent. Send the data, then close the fd.

source

fn cancelled( &mut self, conn: &Connection, qh: &QueueHandle<Self>, source: &ZwpPrimarySelectionSourceV1, )

The data source is no longer valid Cleanup & destroy this resource

Object Safety§

This trait is not object safe.

Implementors§