pub struct PrimarySelectionManagerState { /* private fields */ }
Implementations§
source§impl PrimarySelectionManagerState
impl PrimarySelectionManagerState
pub fn bind<State>(
globals: &GlobalList,
qh: &QueueHandle<State>,
) -> Result<Self, BindError>where
State: Dispatch<ZwpPrimarySelectionDeviceManagerV1, GlobalData, State> + 'static,
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,
) -> PrimarySelectionDevicewhere
State: Dispatch<ZwpPrimarySelectionDeviceV1, PrimarySelectionDeviceData, State> + 'static,
pub fn get_selection_device<State>(
&self,
qh: &QueueHandle<State>,
seat: &WlSeat,
) -> PrimarySelectionDevicewhere
State: Dispatch<ZwpPrimarySelectionDeviceV1, PrimarySelectionDeviceData, State> + 'static,
Get the primary selection data device for the given seat.
Trait Implementations§
source§impl Debug for PrimarySelectionManagerState
impl Debug for PrimarySelectionManagerState
source§impl<D> Dispatch<ZwpPrimarySelectionDeviceManagerV1, GlobalData, D> for PrimarySelectionManagerStatewhere
D: Dispatch<ZwpPrimarySelectionDeviceManagerV1, GlobalData>,
impl<D> Dispatch<ZwpPrimarySelectionDeviceManagerV1, GlobalData, D> for PrimarySelectionManagerStatewhere
D: Dispatch<ZwpPrimarySelectionDeviceManagerV1, GlobalData>,
source§fn event(
_: &mut D,
_: &ZwpPrimarySelectionDeviceManagerV1,
_: <ZwpPrimarySelectionDeviceManagerV1 as Proxy>::Event,
_: &GlobalData,
_: &Connection,
_: &QueueHandle<D>,
)
fn event( _: &mut D, _: &ZwpPrimarySelectionDeviceManagerV1, _: <ZwpPrimarySelectionDeviceManagerV1 as Proxy>::Event, _: &GlobalData, _: &Connection, _: &QueueHandle<D>, )
Called when an event from the server is processed Read more
§fn event_created_child(
opcode: u16,
_qhandle: &QueueHandle<State>,
) -> Arc<dyn ObjectData>
fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData>
Method used to initialize the user-data of objects created by events Read more
source§impl<State> Dispatch<ZwpPrimarySelectionDeviceV1, PrimarySelectionDeviceData, State> for PrimarySelectionManagerStatewhere
State: Dispatch<ZwpPrimarySelectionDeviceV1, PrimarySelectionDeviceData> + Dispatch<ZwpPrimarySelectionOfferV1, PrimarySelectionOfferData> + PrimarySelectionDeviceHandler + 'static,
impl<State> Dispatch<ZwpPrimarySelectionDeviceV1, PrimarySelectionDeviceData, State> for PrimarySelectionManagerStatewhere
State: Dispatch<ZwpPrimarySelectionDeviceV1, PrimarySelectionDeviceData> + Dispatch<ZwpPrimarySelectionOfferV1, PrimarySelectionOfferData> + PrimarySelectionDeviceHandler + 'static,
source§fn event_created_child(
opcode: u16,
qhandle: &QueueHandle<State>,
) -> Arc<dyn ObjectData>
fn event_created_child( opcode: u16, qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData>
Method used to initialize the user-data of objects created by events Read more
source§fn event(
state: &mut State,
proxy: &ZwpPrimarySelectionDeviceV1,
event: <ZwpPrimarySelectionDeviceV1 as Proxy>::Event,
data: &PrimarySelectionDeviceData,
conn: &Connection,
qhandle: &QueueHandle<State>,
)
fn event( state: &mut State, proxy: &ZwpPrimarySelectionDeviceV1, event: <ZwpPrimarySelectionDeviceV1 as Proxy>::Event, data: &PrimarySelectionDeviceData, conn: &Connection, qhandle: &QueueHandle<State>, )
Called when an event from the server is processed Read more
source§impl<State> Dispatch<ZwpPrimarySelectionOfferV1, PrimarySelectionOfferData, State> for PrimarySelectionManagerStatewhere
State: Dispatch<ZwpPrimarySelectionOfferV1, PrimarySelectionOfferData>,
impl<State> Dispatch<ZwpPrimarySelectionOfferV1, PrimarySelectionOfferData, State> for PrimarySelectionManagerStatewhere
State: Dispatch<ZwpPrimarySelectionOfferV1, PrimarySelectionOfferData>,
source§fn event(
_: &mut State,
_: &ZwpPrimarySelectionOfferV1,
event: <ZwpPrimarySelectionOfferV1 as Proxy>::Event,
data: &PrimarySelectionOfferData,
_: &Connection,
_: &QueueHandle<State>,
)
fn event( _: &mut State, _: &ZwpPrimarySelectionOfferV1, event: <ZwpPrimarySelectionOfferV1 as Proxy>::Event, data: &PrimarySelectionOfferData, _: &Connection, _: &QueueHandle<State>, )
Called when an event from the server is processed Read more
§fn event_created_child(
opcode: u16,
_qhandle: &QueueHandle<State>,
) -> Arc<dyn ObjectData>
fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData>
Method used to initialize the user-data of objects created by events Read more
source§impl<State> Dispatch<ZwpPrimarySelectionSourceV1, GlobalData, State> for PrimarySelectionManagerStatewhere
State: Dispatch<ZwpPrimarySelectionSourceV1, GlobalData> + PrimarySelectionSourceHandler,
impl<State> Dispatch<ZwpPrimarySelectionSourceV1, GlobalData, State> for PrimarySelectionManagerStatewhere
State: Dispatch<ZwpPrimarySelectionSourceV1, GlobalData> + PrimarySelectionSourceHandler,
source§fn event(
state: &mut State,
proxy: &ZwpPrimarySelectionSourceV1,
event: <ZwpPrimarySelectionSourceV1 as Proxy>::Event,
_: &GlobalData,
conn: &Connection,
qhandle: &QueueHandle<State>,
)
fn event( state: &mut State, proxy: &ZwpPrimarySelectionSourceV1, event: <ZwpPrimarySelectionSourceV1 as Proxy>::Event, _: &GlobalData, conn: &Connection, qhandle: &QueueHandle<State>, )
Called when an event from the server is processed Read more
§fn event_created_child(
opcode: u16,
_qhandle: &QueueHandle<State>,
) -> Arc<dyn ObjectData>
fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData>
Method used to initialize the user-data of objects created by events Read more
Auto Trait Implementations§
impl Freeze for PrimarySelectionManagerState
impl !RefUnwindSafe for PrimarySelectionManagerState
impl Send for PrimarySelectionManagerState
impl Sync for PrimarySelectionManagerState
impl Unpin for PrimarySelectionManagerState
impl !UnwindSafe 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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§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
.§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
.§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.§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.