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§
sourcefn send_request(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
source: &ZwpPrimarySelectionSourceV1,
mime: String,
write_pipe: WritePipe,
)
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.
Object Safety§
This trait is not object safe.