pub struct DataTransfer { /* private fields */ }Implementations§
Source§impl DataTransfer
impl DataTransfer
pub fn new(inner: impl NativeDataTransfer + 'static) -> Self
pub fn store(&self, item: impl Serialize) -> Result<(), String>
pub fn retrieve<T: for<'de> Deserialize<'de>>( &self, ) -> Result<Option<T>, String>
pub fn get_data(&self, format: &str) -> Option<String>
pub fn get_as_text(&self) -> Option<String>
pub fn set_data(&self, format: &str, data: &str) -> Result<(), String>
pub fn clear_data(&self, format: Option<&str>) -> Result<(), String>
pub fn effect_allowed(&self) -> String
pub fn set_effect_allowed(&self, effect: &str)
pub fn drop_effect(&self) -> String
pub fn set_drop_effect(&self, effect: &str)
pub fn files(&self) -> Vec<FileData>
Auto Trait Implementations§
impl Freeze for DataTransfer
impl !RefUnwindSafe for DataTransfer
impl Send for DataTransfer
impl Sync for DataTransfer
impl Unpin for DataTransfer
impl UnsafeUnpin for DataTransfer
impl !UnwindSafe for DataTransfer
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.