pub struct PrimarySelectionManagerState { /* private fields */ }Implementations§
Source§impl PrimarySelectionManagerState
impl PrimarySelectionManagerState
pub fn bind<State>( globals: &GlobalList, qh: &QueueHandle<State>, ) -> Result<Self, BindError>
Sourcepub fn primary_selection_manager(&self) -> &ZwpPrimarySelectionDeviceManagerV1
pub fn primary_selection_manager(&self) -> &ZwpPrimarySelectionDeviceManagerV1
The underlying wayland object.
Sourcepub fn create_selection_source<State, I, T>(
&self,
qh: &QueueHandle<State>,
mime_types: I,
) -> PrimarySelectionSourcewhere
State: Dispatch<ZwpPrimarySelectionSourceV1, GlobalData, State> + 'static,
I: IntoIterator<Item = T>,
T: ToString,
pub fn create_selection_source<State, I, T>(
&self,
qh: &QueueHandle<State>,
mime_types: I,
) -> PrimarySelectionSourcewhere
State: Dispatch<ZwpPrimarySelectionSourceV1, GlobalData, State> + 'static,
I: IntoIterator<Item = T>,
T: ToString,
Create a primary selection source.
Sourcepub fn get_selection_device<State>(
&self,
qh: &QueueHandle<State>,
seat: &WlSeat,
) -> PrimarySelectionDevice
pub fn get_selection_device<State>( &self, qh: &QueueHandle<State>, seat: &WlSeat, ) -> PrimarySelectionDevice
Get the primary selection data device for the given seat.
Trait Implementations§
Source§impl Debug for PrimarySelectionManagerState
impl Debug for PrimarySelectionManagerState
Source§impl Drop for PrimarySelectionManagerState
impl Drop for PrimarySelectionManagerState
Auto Trait Implementations§
impl !RefUnwindSafe for PrimarySelectionManagerState
impl !UnwindSafe for PrimarySelectionManagerState
impl Freeze for PrimarySelectionManagerState
impl Send for PrimarySelectionManagerState
impl Sync for PrimarySelectionManagerState
impl Unpin for PrimarySelectionManagerState
impl UnsafeUnpin for PrimarySelectionManagerState
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.