pub struct EventBodyOwned {
pub kind: String,
pub detail1: i32,
pub detail2: i32,
pub any_data: OwnedValue,
pub(crate) properties: Properties,
}Expand description
AT-SPI2 protocol native event body type.
All of the various signals in the AT-SPI2 protocol share this shape.
Most toolkits and implementors emit this type, except for Qt, which has has its
own type: EventBodyQtOwned.
Signature (siiva{sv}),
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: PropertiesNot in use.
See: Properties.
Trait Implementations§
Source§impl Clone for EventBodyOwned
impl Clone for EventBodyOwned
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_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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EventBodyOwned
impl Debug for EventBodyOwned
Source§impl Default for EventBodyOwned
impl Default for EventBodyOwned
Source§impl<'de> Deserialize<'de> for EventBodyOwned
impl<'de> Deserialize<'de> for EventBodyOwned
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>,
Source§impl From<&AbsEvent> for EventBodyOwned
impl From<&AbsEvent> for EventBodyOwned
Source§impl From<&ButtonEvent> for EventBodyOwned
impl From<&ButtonEvent> for EventBodyOwned
Source§fn from(event: &ButtonEvent) -> Self
fn from(event: &ButtonEvent) -> Self
Source§impl From<&ChildrenChangedEvent> for EventBodyOwned
impl From<&ChildrenChangedEvent> for EventBodyOwned
Source§fn from(event: &ChildrenChangedEvent) -> Self
fn from(event: &ChildrenChangedEvent) -> Self
Source§impl From<&PropertyChangeEvent> for EventBodyOwned
impl From<&PropertyChangeEvent> for EventBodyOwned
Source§fn from(event: &PropertyChangeEvent) -> Self
fn from(event: &PropertyChangeEvent) -> Self
Source§impl From<&RelEvent> for EventBodyOwned
impl From<&RelEvent> for EventBodyOwned
Source§impl From<&StateChangedEvent> for EventBodyOwned
impl From<&StateChangedEvent> for EventBodyOwned
Source§fn from(event: &StateChangedEvent) -> Self
fn from(event: &StateChangedEvent) -> Self
Source§impl From<AbsEvent> for EventBodyOwned
impl From<AbsEvent> for EventBodyOwned
Source§impl From<ActiveDescendantChangedEvent> for EventBodyOwned
impl From<ActiveDescendantChangedEvent> for EventBodyOwned
Source§fn from(event: ActiveDescendantChangedEvent) -> Self
fn from(event: ActiveDescendantChangedEvent) -> Self
Source§impl From<AnnouncementEvent> for EventBodyOwned
impl From<AnnouncementEvent> for EventBodyOwned
Source§fn from(event: AnnouncementEvent) -> Self
fn from(event: AnnouncementEvent) -> Self
Source§impl From<ButtonEvent> for EventBodyOwned
impl From<ButtonEvent> for EventBodyOwned
Source§fn from(event: ButtonEvent) -> Self
fn from(event: ButtonEvent) -> Self
Source§impl From<ChildrenChangedEvent> for EventBodyOwned
impl From<ChildrenChangedEvent> for EventBodyOwned
Source§fn from(event: ChildrenChangedEvent) -> Self
fn from(event: ChildrenChangedEvent) -> Self
Source§impl From<EventBodyOwned> for EventBody<'_>
impl From<EventBodyOwned> for EventBody<'_>
Source§fn from(owned: EventBodyOwned) -> Self
fn from(owned: EventBodyOwned) -> Self
Source§impl From<EventBodyOwned> for EventBodyQtOwned
impl From<EventBodyOwned> for EventBodyQtOwned
Source§fn from(owned: EventBodyOwned) -> Self
fn from(owned: EventBodyOwned) -> Self
Source§impl From<EventBodyQtOwned> for EventBodyOwned
impl From<EventBodyQtOwned> for EventBodyOwned
Source§fn from(body: EventBodyQtOwned) -> Self
fn from(body: EventBodyQtOwned) -> Self
Source§impl From<ModifiersEvent> for EventBodyOwned
impl From<ModifiersEvent> for EventBodyOwned
Source§fn from(event: ModifiersEvent) -> Self
fn from(event: ModifiersEvent) -> Self
Source§impl From<PropertyChangeEvent> for EventBodyOwned
impl From<PropertyChangeEvent> for EventBodyOwned
Source§fn from(event: PropertyChangeEvent) -> Self
fn from(event: PropertyChangeEvent) -> Self
Source§impl From<PropertyChangeEvent> for EventBodyOwned
impl From<PropertyChangeEvent> for EventBodyOwned
Source§fn from(event: PropertyChangeEvent) -> Self
fn from(event: PropertyChangeEvent) -> Self
Source§impl From<RelEvent> for EventBodyOwned
impl From<RelEvent> for EventBodyOwned
Source§impl From<StateChangedEvent> for EventBodyOwned
impl From<StateChangedEvent> for EventBodyOwned
Source§fn from(event: StateChangedEvent) -> Self
fn from(event: StateChangedEvent) -> Self
Source§impl From<TextCaretMovedEvent> for EventBodyOwned
impl From<TextCaretMovedEvent> for EventBodyOwned
Source§fn from(event: TextCaretMovedEvent) -> Self
fn from(event: TextCaretMovedEvent) -> Self
Source§impl From<TextChangedEvent> for EventBodyOwned
impl From<TextChangedEvent> for EventBodyOwned
Source§fn from(event: TextChangedEvent) -> Self
fn from(event: TextChangedEvent) -> Self
Source§impl PartialEq<EventBodyOwned> for EventBodyQtOwned
impl PartialEq<EventBodyOwned> for EventBodyQtOwned
Source§fn eq(&self, other: &EventBodyOwned) -> bool
fn eq(&self, other: &EventBodyOwned) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialEq<EventBodyQtOwned> for EventBodyOwned
impl PartialEq<EventBodyQtOwned> for EventBodyOwned
Source§fn eq(&self, other: &EventBodyQtOwned) -> bool
fn eq(&self, other: &EventBodyQtOwned) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialEq for EventBodyOwned
impl PartialEq for EventBodyOwned
Source§fn eq(&self, other: &EventBodyOwned) -> bool
fn eq(&self, other: &EventBodyOwned) -> bool
self and other values to be equal, and is used by ==.