pub struct EventBodyQtOwned {
pub kind: String,
pub detail1: i32,
pub detail2: i32,
pub any_data: OwnedValue,
pub(crate) properties: QtProperties,
}Expand description
Event body as used exclusively by ‘Qt’ toolkit.
Signature: “siiv(so)”
Fields§
§kind: Stringkind 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: i32Generic detail1 value described by AT-SPI.
detail2: i32Generic detail2 value described by AT-SPI.
any_data: OwnedValueGeneric any_data value described by AT-SPI.
This can be any type.
properties: QtPropertiesTrait Implementations§
Source§impl Clone for EventBodyQtOwned
impl Clone for EventBodyQtOwned
Source§fn clone(&self) -> EventBodyQtOwned
fn clone(&self) -> EventBodyQtOwned
§Safety
This implementation of Clone can panic! although chances are slim.
If the following conditions are met:
- the
any_datafield contains anstd::os::fd::OwnedFdtype, 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§fn default() -> EventBodyQtOwned
fn default() -> EventBodyQtOwned
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EventBodyQtOwned
impl<'de> Deserialize<'de> for EventBodyQtOwned
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventBodyQtOwned, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventBodyQtOwned, <__D as Deserializer<'de>>::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§fn from(event: EventBody<'_>) -> EventBodyQtOwned
fn from(event: EventBody<'_>) -> EventBodyQtOwned
Converts to this type from the input type.
Source§impl<'a> From<EventBodyBorrowed<'a>> for EventBodyQtOwned
impl<'a> From<EventBodyBorrowed<'a>> for EventBodyQtOwned
Source§fn from(borrowed: EventBodyBorrowed<'a>) -> EventBodyQtOwned
fn from(borrowed: EventBodyBorrowed<'a>) -> EventBodyQtOwned
Converts to this type from the input type.
Source§impl From<EventBodyOwned> for EventBodyQtOwned
impl From<EventBodyOwned> for EventBodyQtOwned
Source§fn from(owned: EventBodyOwned) -> EventBodyQtOwned
fn from(owned: EventBodyOwned) -> EventBodyQtOwned
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) -> EventBody<'_>
fn from(qt_owned: EventBodyQtOwned) -> EventBody<'_>
Converts to this type from the input type.
Source§impl From<EventBodyQtOwned> for EventBodyOwned
impl From<EventBodyQtOwned> for EventBodyOwned
Source§fn from(body: EventBodyQtOwned) -> EventBodyOwned
fn from(body: EventBodyQtOwned) -> EventBodyOwned
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§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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.