Function smithay_client_toolkit::data_device_manager::data_offer::receive
source · pub fn receive(offer: &WlDataOffer, mime_type: String) -> Result<ReadPipe>
Expand description
Request to receive the data of a given mime type.
You can do this several times, as a reaction to motion of the dnd cursor, or to inspect the data in order to choose your response.
Note that you should not read the contents right away in a blocking way, as you may deadlock your application doing so. At least make sure you flush your events to the server before doing so.
Fails if too many file descriptors were already open and a pipe could not be created.