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.
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.