pub struct ExtDataControlSourceV1 { /* private fields */ }Available on crate feature
ext-data-control-v1 only.Expand description
offer to transfer data
The ext_data_control_source object is the source side of a ext_data_control_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.
See Event for the list of possible events.
Implementations§
Source§impl ExtDataControlSourceV1
impl ExtDataControlSourceV1
Sourcepub fn offer<D>(self, conn: &mut Connection<D>, mime_type: CString)
pub fn offer<D>(self, conn: &mut Connection<D>, mime_type: CString)
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.
Calling this after ext_data_control_device.set_selection is a protocol error.
Since version 1.
Sourcepub fn destroy<D>(self, conn: &mut Connection<D>)
pub fn destroy<D>(self, conn: &mut Connection<D>)
destroy this source
Destroys the data source object.
Since version 1.
Trait Implementations§
Source§impl Borrow<ObjectId> for ExtDataControlSourceV1
impl Borrow<ObjectId> for ExtDataControlSourceV1
Source§impl Clone for ExtDataControlSourceV1
impl Clone for ExtDataControlSourceV1
Source§fn clone(&self) -> ExtDataControlSourceV1
fn clone(&self) -> ExtDataControlSourceV1
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExtDataControlSourceV1
impl Debug for ExtDataControlSourceV1
Source§impl Hash for ExtDataControlSourceV1
impl Hash for ExtDataControlSourceV1
Source§impl Ord for ExtDataControlSourceV1
impl Ord for ExtDataControlSourceV1
Source§impl PartialEq<ExtDataControlSourceV1> for ObjectId
impl PartialEq<ExtDataControlSourceV1> for ObjectId
Source§impl PartialEq<ObjectId> for ExtDataControlSourceV1
impl PartialEq<ObjectId> for ExtDataControlSourceV1
Source§impl PartialEq for ExtDataControlSourceV1
impl PartialEq for ExtDataControlSourceV1
Source§impl PartialOrd for ExtDataControlSourceV1
impl PartialOrd for ExtDataControlSourceV1
Source§impl Proxy for ExtDataControlSourceV1
impl Proxy for ExtDataControlSourceV1
Source§impl TryFrom<Object> for ExtDataControlSourceV1
impl TryFrom<Object> for ExtDataControlSourceV1
Source§type Error = WrongObject
type Error = WrongObject
The type returned in the event of a conversion error.
impl Copy for ExtDataControlSourceV1
impl Eq for ExtDataControlSourceV1
Auto Trait Implementations§
impl Freeze for ExtDataControlSourceV1
impl RefUnwindSafe for ExtDataControlSourceV1
impl Send for ExtDataControlSourceV1
impl Sync for ExtDataControlSourceV1
impl Unpin for ExtDataControlSourceV1
impl UnwindSafe for ExtDataControlSourceV1
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more