Struct wayland_client::wayland::data_device::WlDataSource
[−]
[src]
pub struct WlDataSource { // some fields omitted }
offer to transfer data
The wl_data_source object is the source side of a wl_data_offer. It is created by the source client in a data transfer and provides a way to describe the offered data and a way to respond to requests to transfer the data.
Methods
impl WlDataSource
fn offer(&self, mime_type: String)
add an offered mime type
This request adds a mime type to the set of mime types advertised to targets. Can be called several times to offer multiple types.
fn destroy(self)
destroy the data source
Destroy the data source.