pub struct EventBodyQtOwned {
pub kind: String,
pub detail1: i32,
pub detail2: i32,
pub any_data: OwnedValue,
/* private fields */
}
Expand description
Event body as used exclusively by ‘Qt’ toolkit.
Signature: “siiv(so)”
Fields§
§kind: String
kind variant, used for specifying an event triple “object:state-changed:focused”, the “focus” part of this event is what is contained within the kind.
detail1: i32
Generic detail1 value described by AT-SPI.
detail2: i32
Generic detail2 value described by AT-SPI.
any_data: OwnedValue
Generic any_data
value described by AT-SPI.
This can be any type.
Trait Implementations§
Source§impl Clone for EventBodyQtOwned
impl Clone for EventBodyQtOwned
Source§fn clone(&self) -> Self
fn clone(&self) -> Self
§Safety
This implementation of Clone
can panic! although chances are slim.
If the following conditions are met:
- the
any_data
field contains an [std::os::fd::OwnedFd
] type, and - the maximum number of open files for the process is exceeded.
Then this function panic.
None of the types in crate::events
use [std::os::fd::OwnedFd
].
Events on the AT-SPI bus could, theoretically send a file descriptor, but nothing in the current
specification describes that.
See zvariant::Value::try_clone
for more information.
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EventBodyQtOwned
impl Debug for EventBodyQtOwned
Source§impl Default for EventBodyQtOwned
impl Default for EventBodyQtOwned
Source§impl<'de> Deserialize<'de> for EventBodyQtOwned
impl<'de> Deserialize<'de> for EventBodyQtOwned
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<EventBody<'_>> for EventBodyQtOwned
impl From<EventBody<'_>> for EventBodyQtOwned
Source§impl<'a> From<EventBodyBorrowed<'a>> for EventBodyQtOwned
impl<'a> From<EventBodyBorrowed<'a>> for EventBodyQtOwned
Source§fn from(borrowed: EventBodyBorrowed<'a>) -> Self
fn from(borrowed: EventBodyBorrowed<'a>) -> Self
Converts to this type from the input type.
Source§impl From<EventBodyOwned> for EventBodyQtOwned
impl From<EventBodyOwned> for EventBodyQtOwned
Source§fn from(owned: EventBodyOwned) -> Self
fn from(owned: EventBodyOwned) -> Self
Converts to this type from the input type.
Source§impl From<EventBodyQtOwned> for EventBody<'_>
impl From<EventBodyQtOwned> for EventBody<'_>
Source§fn from(qt_owned: EventBodyQtOwned) -> Self
fn from(qt_owned: EventBodyQtOwned) -> Self
Converts to this type from the input type.
Source§impl From<EventBodyQtOwned> for EventBodyOwned
impl From<EventBodyQtOwned> for EventBodyOwned
Source§fn from(body: EventBodyQtOwned) -> Self
fn from(body: EventBodyQtOwned) -> Self
Converts to this type from the input type.
Source§impl PartialEq<EventBodyOwned> for EventBodyQtOwned
impl PartialEq<EventBodyOwned> for EventBodyQtOwned
Source§impl PartialEq<EventBodyQtOwned> for EventBodyOwned
impl PartialEq<EventBodyQtOwned> for EventBodyOwned
Source§impl PartialEq for EventBodyQtOwned
impl PartialEq for EventBodyQtOwned
Source§impl Serialize for EventBodyQtOwned
impl Serialize for EventBodyQtOwned
Source§impl Type for EventBodyQtOwned
impl Type for EventBodyQtOwned
impl StructuralPartialEq for EventBodyQtOwned
Auto Trait Implementations§
impl Freeze for EventBodyQtOwned
impl RefUnwindSafe for EventBodyQtOwned
impl Send for EventBodyQtOwned
impl Sync for EventBodyQtOwned
impl Unpin for EventBodyQtOwned
impl UnwindSafe for EventBodyQtOwned
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
Source§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
Source§fn deserializer_for_signature(
signature: &Signature,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature( signature: &Signature, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this parsed signature.