DataTransfer
struct · ferroui-base · v0.5.0
struct DataTransfer
A mutable implementation of IDataTransfer and
IAsyncDataTransfer.
While it also implements IAsyncDataTransfer, this type always
returns data synchronously. For advanced usages, consider implementing
IAsyncDataTransfer directly.
Members
new
fn new() -> Rc<DataTransfer>
Creates an empty data transfer.
formats
fn formats(self: &Self) -> Rc<[DataFormat]>
Gets the formats supported by the items of this object, without duplicates.
items
fn items(self: &Self) -> Rc<[Rc<DataTransferItem>]>
Gets a list of DataTransferItem contained in this object.
add
fn add(self: &Self, item: Rc<DataTransferItem>)
Adds an existing DataTransferItem to this object.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeAsyncDataTransferExtensionsDataTransferExtensionsClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEitherIDisposableIDataTransferIAsyncDataTransfer
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.