pub trait PlatformDataTransferImpl {
// Required methods
fn provide_formats(&self) -> Result<Vec<DataFormat>, ClipboardError>;
fn provide_items(
&self,
) -> Result<Vec<Rc<PlatformDataTransferItem>>, ClipboardError>;
fn dispose(&self, owner: &PlatformDataTransfer);
}Expand description
The members a platform backend provides for a PlatformDataTransfer.
Required Methods§
Sourcefn provide_formats(&self) -> Result<Vec<DataFormat>, ClipboardError>
fn provide_formats(&self) -> Result<Vec<DataFormat>, ClipboardError>
Provides the formats supported by the data transfer. Called until it succeeds: a failure is reported to the caller and not kept.
Sourcefn provide_items(
&self,
) -> Result<Vec<Rc<PlatformDataTransferItem>>, ClipboardError>
fn provide_items( &self, ) -> Result<Vec<Rc<PlatformDataTransferItem>>, ClipboardError>
Provides the items of the data transfer. Called until it succeeds: a failure is reported to the caller and not kept.
Sourcefn dispose(&self, owner: &PlatformDataTransfer)
fn dispose(&self, owner: &PlatformDataTransfer)
Releases the platform resources of the data transfer. owner tells
whether the formats and the items have been provided.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".