struct PrimarySelectionDeviceInner {
selection: Option<PrimarySelectionOffer>,
know_offers: Vec<PrimarySelectionOffer>,
}
Expand description
Inner state for PrimarySelectionDevice
.
Fields§
§selection: Option<PrimarySelectionOffer>
Current selection.
know_offers: Vec<PrimarySelectionOffer>
List of known offers.
Implementations§
source§impl PrimarySelectionDeviceInner
impl PrimarySelectionDeviceInner
sourcefn set_selection(&mut self, offer: Option<PrimarySelectionOfferImpl>)
fn set_selection(&mut self, offer: Option<PrimarySelectionOfferImpl>)
Provide a primary selection source as the new content for the primary selection.
Correspond to traditional copy/paste behavior. Setting the source to None
will clear
the selection.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PrimarySelectionDeviceInner
impl Send for PrimarySelectionDeviceInner
impl Sync for PrimarySelectionDeviceInner
impl Unpin for PrimarySelectionDeviceInner
impl !UnwindSafe for PrimarySelectionDeviceInner
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