Struct smithay_client_toolkit::seat::SeatData
source · [−]pub struct SeatData {
pub name: String,
pub has_pointer: bool,
pub has_keyboard: bool,
pub has_touch: bool,
pub defunct: bool,
/* private fields */
}
Expand description
The metadata associated with a seat
Fields
name: String
The name of this seat
It can be used as an identifier for the seat
has_pointer: bool
Whether this seat has a pointer available
has_keyboard: bool
Whether this seat has a keyboard available
has_touch: bool
Whether this seat has a touchscreen available
defunct: bool
Whether this seat has been removed from the registry
Once a seat is removed, you will no longer receive any event on any of its associated devices (pointer, keyboard or touch).
You can thus cleanup all your state associated with this seat.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SeatData
impl Send for SeatData
impl Sync for SeatData
impl Unpin for SeatData
impl UnwindSafe for SeatData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more