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: PropertiesTrait Implementations§
Source§impl Clone for EventBodyOwned
impl Clone for EventBodyOwned
Source§fn clone(&self) -> EventBodyOwned
fn clone(&self) -> EventBodyOwned
§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)
source. Read moreSource§impl Debug for EventBodyOwned
impl Debug for EventBodyOwned
Source§impl Default for EventBodyOwned
impl Default for EventBodyOwned
Source§fn default() -> EventBodyOwned
fn default() -> EventBodyOwned
Source§impl<'de> Deserialize<'de> for EventBodyOwned
impl<'de> Deserialize<'de> for EventBodyOwned
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventBodyOwned, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventBodyOwned, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl From<AbsEvent> for EventBodyOwned
impl From<AbsEvent> for EventBodyOwned
Source§fn from(event: AbsEvent) -> EventBodyOwned
fn from(event: AbsEvent) -> EventBodyOwned
Source§impl From<ActiveDescendantChangedEvent> for EventBodyOwned
impl From<ActiveDescendantChangedEvent> for EventBodyOwned
Source§fn from(event: ActiveDescendantChangedEvent) -> EventBodyOwned
fn from(event: ActiveDescendantChangedEvent) -> EventBodyOwned
Source§impl From<AnnouncementEvent> for EventBodyOwned
impl From<AnnouncementEvent> for EventBodyOwned
Source§fn from(event: AnnouncementEvent) -> EventBodyOwned
fn from(event: AnnouncementEvent) -> EventBodyOwned
Source§impl From<ButtonEvent> for EventBodyOwned
impl From<ButtonEvent> for EventBodyOwned
Source§fn from(event: ButtonEvent) -> EventBodyOwned
fn from(event: ButtonEvent) -> EventBodyOwned
Source§impl From<ChildrenChangedEvent> for EventBodyOwned
impl From<ChildrenChangedEvent> for EventBodyOwned
Source§fn from(event: ChildrenChangedEvent) -> EventBodyOwned
fn from(event: ChildrenChangedEvent) -> EventBodyOwned
Source§impl From<EventBodyOwned> for EventBody<'_>
impl From<EventBodyOwned> for EventBody<'_>
Source§fn from(owned: EventBodyOwned) -> EventBody<'_>
fn from(owned: EventBodyOwned) -> EventBody<'_>
Source§impl From<EventBodyOwned> for EventBodyQtOwned
impl From<EventBodyOwned> for EventBodyQtOwned
Source§fn from(owned: EventBodyOwned) -> EventBodyQtOwned
fn from(owned: EventBodyOwned) -> EventBodyQtOwned
Source§impl From<EventBodyQtOwned> for EventBodyOwned
impl From<EventBodyQtOwned> for EventBodyOwned
Source§fn from(body: EventBodyQtOwned) -> EventBodyOwned
fn from(body: EventBodyQtOwned) -> EventBodyOwned
Source§impl From<ModifiersEvent> for EventBodyOwned
impl From<ModifiersEvent> for EventBodyOwned
Source§fn from(event: ModifiersEvent) -> EventBodyOwned
fn from(event: ModifiersEvent) -> EventBodyOwned
Source§impl From<PropertyChangeEvent> for EventBodyOwned
impl From<PropertyChangeEvent> for EventBodyOwned
Source§fn from(event: PropertyChangeEvent) -> EventBodyOwned
fn from(event: PropertyChangeEvent) -> EventBodyOwned
Source§impl From<PropertyChangeEvent> for EventBodyOwned
impl From<PropertyChangeEvent> for EventBodyOwned
Source§fn from(event: PropertyChangeEvent) -> EventBodyOwned
fn from(event: PropertyChangeEvent) -> EventBodyOwned
Source§impl From<RelEvent> for EventBodyOwned
impl From<RelEvent> for EventBodyOwned
Source§fn from(event: RelEvent) -> EventBodyOwned
fn from(event: RelEvent) -> EventBodyOwned
Source§impl From<StateChangedEvent> for EventBodyOwned
impl From<StateChangedEvent> for EventBodyOwned
Source§fn from(event: StateChangedEvent) -> EventBodyOwned
fn from(event: StateChangedEvent) -> EventBodyOwned
Source§impl From<TextCaretMovedEvent> for EventBodyOwned
impl From<TextCaretMovedEvent> for EventBodyOwned
Source§fn from(event: TextCaretMovedEvent) -> EventBodyOwned
fn from(event: TextCaretMovedEvent) -> EventBodyOwned
Source§impl From<TextChangedEvent> for EventBodyOwned
impl From<TextChangedEvent> for EventBodyOwned
Source§fn from(event: TextChangedEvent) -> EventBodyOwned
fn from(event: TextChangedEvent) -> EventBodyOwned
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 EventBodyOwned
impl PartialEq for EventBodyOwned
Source§impl Serialize for EventBodyOwned
impl Serialize for EventBodyOwned
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,
Source§impl TryFrom<EventBodyOwned> for Property
impl TryFrom<EventBodyOwned> for Property
Source§type Error = AtspiError
type Error = AtspiError
Source§fn try_from(
body: EventBodyOwned,
) -> Result<Property, <Property as TryFrom<EventBodyOwned>>::Error>
fn try_from( body: EventBodyOwned, ) -> Result<Property, <Property as TryFrom<EventBodyOwned>>::Error>
Source§impl Type for EventBodyOwned
impl Type for EventBodyOwned
impl StructuralPartialEq for EventBodyOwned
Auto Trait Implementations§
impl Freeze for EventBodyOwned
impl RefUnwindSafe for EventBodyOwned
impl Send for EventBodyOwned
impl Sync for EventBodyOwned
impl Unpin for EventBodyOwned
impl UnwindSafe for EventBodyOwned
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
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>
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>
Source§impl<T> DynamicType for T
impl<T> DynamicType for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> MessageConversionExt<EventBodyOwned> for Twhere
T: MessageConversion<Body = EventBodyOwned>,
impl<T> MessageConversionExt<EventBodyOwned> for Twhere
T: MessageConversion<Body = EventBodyOwned>,
Source§fn try_from_message(msg: &Message) -> Result<T, AtspiError>
fn try_from_message(msg: &Message) -> Result<T, AtspiError>
zbus::Message into this event type.
Does all the validation for you. Read moreSource§fn validate_interface(msg: &Message) -> Result<(), AtspiError>
fn validate_interface(msg: &Message) -> Result<(), AtspiError>
zbus::message::Header::interface against Self’s assignment of BusProperties::DBUS_INTERFACE Read moreSource§fn validate_member(msg: &Message) -> Result<(), AtspiError>
fn validate_member(msg: &Message) -> Result<(), AtspiError>
zbus::message::Header::member against Self’s assignment of BusProperties::DBUS_MEMBER Read more