Struct smithay_client_toolkit::data_device::DataSource [−][src]
pub struct DataSource { /* fields omitted */ }
A data source for sending data though copy/paste or drag and drop
Methods
impl DataSource
[src]
impl DataSource
pub fn new<Impl>(
mgr: &Proxy<WlDataDeviceManager>,
mime_types: &[&str],
implem: Impl
) -> DataSource where
Impl: Implementation<(), DataSourceEvent> + Send,
[src]
pub fn new<Impl>(
mgr: &Proxy<WlDataDeviceManager>,
mime_types: &[&str],
implem: Impl
) -> DataSource where
Impl: Implementation<(), DataSourceEvent> + Send,
Create a new data source
You'll then need to provide it to a data device to send it either wia selection (aka copy/paste) or via a drag and drop.
pub unsafe fn new_nonsend<Impl>(
mgr: &Proxy<WlDataDeviceManager>,
mime_types: &[&str],
implem: Impl,
token: &QueueToken
) -> DataSource where
Impl: Implementation<(), DataSourceEvent>,
[src]
pub unsafe fn new_nonsend<Impl>(
mgr: &Proxy<WlDataDeviceManager>,
mime_types: &[&str],
implem: Impl,
token: &QueueToken
) -> DataSource where
Impl: Implementation<(), DataSourceEvent>,
Create a data source
Like new
, but the implementation does not require to
be Send
.
unsafety: for the same reasons as NewProxy::implement_nonsend
Auto Trait Implementations
impl Send for DataSource
impl Send for DataSource
impl Sync for DataSource
impl Sync for DataSource