[−][src]Trait wayland_protocols::wlr::unstable::data_control::v1::client::zwlr_data_control_offer_v1::RequestsTrait
Required methods
fn receive(&self, mime_type: String, fd: RawFd)
request that the data is transferred
To transfer the offered data, the client issues this request and indicates the MIME type it wants to receive. The transfer happens through the passed file descriptor (typically created with the pipe system call). The source client writes the data in the MIME type representation requested and then closes the file descriptor.
The receiving client reads from the read end of the pipe until EOF and then closes its end, at which point the transfer is complete.
This request may happen multiple times for different MIME types.
fn destroy(&self)
destroy this offer
Destroys the data offer object.
This is a destructor, you cannot send requests to this object any longer once this method is called.