pub struct EventBodyOwned {
pub kind: String,
pub detail1: i32,
pub detail2: i32,
pub any_data: OwnedValue,
/* private fields */
}
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: 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 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_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)
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<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§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§impl TryFrom<EventBodyOwned> for Property
impl TryFrom<EventBodyOwned> for Property
Source§type Error = AtspiError
type Error = AtspiError
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