pub struct EventBodyQtBorrowed<'m> {
pub kind: &'m str,
pub detail1: i32,
pub detail2: i32,
pub any_data: Value<'m>,
pub(crate) properties: QtProperties,
}Fields§
§kind: &'m strkind 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: Value<'m>Generic any_data value described by AT-SPI.
This can be any type.
properties: QtPropertiesImplementations§
Source§impl EventBodyQtBorrowed<'_>
impl EventBodyQtBorrowed<'_>
Sourcepub fn try_to_owned(&self) -> Result<EventBodyQtOwned, AtspiError>
pub fn try_to_owned(&self) -> Result<EventBodyQtOwned, AtspiError>
Convert partially borrowed Qt event body to an owned event body.
§Errors
This will error 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.
Trait Implementations§
Source§impl Clone for EventBodyQtBorrowed<'_>
impl Clone for EventBodyQtBorrowed<'_>
Source§fn clone(&self) -> EventBodyQtBorrowed<'_>
fn clone(&self) -> EventBodyQtBorrowed<'_>
§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 panics.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'m> Debug for EventBodyQtBorrowed<'m>
impl<'m> Debug for EventBodyQtBorrowed<'m>
Source§impl Default for EventBodyQtBorrowed<'_>
impl Default for EventBodyQtBorrowed<'_>
Source§fn default() -> EventBodyQtBorrowed<'_>
fn default() -> EventBodyQtBorrowed<'_>
Source§impl<'de, 'm> Deserialize<'de> for EventBodyQtBorrowed<'m>where
'de: 'm,
impl<'de, 'm> Deserialize<'de> for EventBodyQtBorrowed<'m>where
'de: 'm,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventBodyQtBorrowed<'m>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventBodyQtBorrowed<'m>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl<'a> From<EventBodyQtBorrowed<'a>> for EventBody<'a>
impl<'a> From<EventBodyQtBorrowed<'a>> for EventBody<'a>
Source§fn from(qt_borrowed: EventBodyQtBorrowed<'a>) -> EventBody<'a>
fn from(qt_borrowed: EventBodyQtBorrowed<'a>) -> EventBody<'a>
Source§impl<'de> From<EventBodyQtBorrowed<'de>> for EventBodyBorrowed<'de>
impl<'de> From<EventBodyQtBorrowed<'de>> for EventBodyBorrowed<'de>
Source§fn from(borrow: EventBodyQtBorrowed<'de>) -> EventBodyBorrowed<'de>
fn from(borrow: EventBodyQtBorrowed<'de>) -> EventBodyBorrowed<'de>
Source§impl PartialEq<EventBodyBorrowed<'_>> for EventBodyQtBorrowed<'_>
impl PartialEq<EventBodyBorrowed<'_>> for EventBodyQtBorrowed<'_>
Source§fn eq(&self, other: &EventBodyBorrowed<'_>) -> bool
fn eq(&self, other: &EventBodyBorrowed<'_>) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialEq<EventBodyQtBorrowed<'_>> for EventBodyBorrowed<'_>
impl PartialEq<EventBodyQtBorrowed<'_>> for EventBodyBorrowed<'_>
Source§fn eq(&self, other: &EventBodyQtBorrowed<'_>) -> bool
fn eq(&self, other: &EventBodyQtBorrowed<'_>) -> bool
self and other values to be equal, and is used by ==.Source§impl<'m> PartialEq for EventBodyQtBorrowed<'m>
impl<'m> PartialEq for EventBodyQtBorrowed<'m>
Source§fn eq(&self, other: &EventBodyQtBorrowed<'m>) -> bool
fn eq(&self, other: &EventBodyQtBorrowed<'m>) -> bool
self and other values to be equal, and is used by ==.