[−][src]Struct smithay_client_toolkit::seat::SeatHandler
A simple handler for seats
This handler will manage seats and track their capabilities.
You can register callbacks using the SeatHandling::listen
to be notified whenever a seat is created, destroyed, or its capabilities change.
Implementations
impl SeatHandler
[src]
pub fn new() -> SeatHandler
[src]
Create a new SeatHandler
Trait Implementations
impl MultiGlobalHandler<WlSeat> for SeatHandler
[src]
fn created(
&mut self,
registry: Attached<WlRegistry>,
id: u32,
version: u32,
_: DispatchData<'_>
)
[src]
&mut self,
registry: Attached<WlRegistry>,
id: u32,
version: u32,
_: DispatchData<'_>
)
fn removed(&mut self, id: u32, ddata: DispatchData<'_>)
[src]
fn get_all(&self) -> Vec<Attached<WlSeat>>
[src]
impl SeatHandling for SeatHandler
[src]
fn listen<F: FnMut(Attached<WlSeat>, &SeatData, DispatchData<'_>) + 'static>(
&mut self,
f: F
) -> SeatListener
[src]
&mut self,
f: F
) -> SeatListener
Auto Trait Implementations
impl !RefUnwindSafe for SeatHandler
impl !Send for SeatHandler
impl !Sync for SeatHandler
impl Unpin for SeatHandler
impl !UnwindSafe for SeatHandler
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,