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.

Trait Implementations

impl Sync for WlDataSource

impl Send for WlDataSource

impl Proxy for WlDataSource

fn ptr(&self) -> *mut wl_proxy

fn interface() -> *mut wl_interface

fn interface_name() -> &'static str

fn version() -> u32

fn id(&self) -> ProxyId

unsafe fn from_ptr(ptr: *mut wl_proxy) -> WlDataSource

unsafe fn from_ptr_no_own(ptr: *mut wl_proxy) -> WlDataSource

fn set_evt_iterator(&mut self, evt: &EventIterator)

impl Debug for WlDataSource

fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>

impl Drop for WlDataSource

fn drop(&mut self)