Struct atspi_proxies::events::EventBodyOwned

source ·
pub struct EventBodyOwned {
    pub kind: String,
    pub detail1: i32,
    pub detail2: i32,
    pub any_data: OwnedValue,
    pub properties: HashMap<OwnedUniqueName, OwnedValue>,
}
Expand description

Standard event body (GTK, egui, etc.) NOTE: Qt has its own signature: EventBodyQT. 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.

§properties: HashMap<OwnedUniqueName, OwnedValue>

A map of properties. Not in use.

Trait Implementations§

source§

impl Clone for EventBodyOwned

Safety: This implementation of Clone can panic! Although the chance is extremely remote.

If:

  1. the any_data or properties field contain an std::os::fd::OwnedFd type, and
  2. the maximum number of open files for the process is exceeded.

Then, and only then, will 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 specification allows that.

See zvariant::Value::try_clone for more information.

source§

fn clone(&self) -> EventBodyOwned

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for EventBodyOwned

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for EventBodyOwned

source§

fn default() -> EventBodyOwned

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for EventBodyOwned

source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<EventBodyOwned, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<AbsEvent> for EventBodyOwned

source§

fn from(event: AbsEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<ActivateEvent> for EventBodyOwned

source§

fn from(_event: ActivateEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<ActiveDescendantChangedEvent> for EventBodyOwned

source§

fn from(event: ActiveDescendantChangedEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<AnnouncementEvent> for EventBodyOwned

source§

fn from(event: AnnouncementEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<ApplicationChangedEvent> for EventBodyOwned

source§

fn from(_event: ApplicationChangedEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<AttributesChangedEvent> for EventBodyOwned

source§

fn from(_event: AttributesChangedEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<AttributesChangedEvent> for EventBodyOwned

source§

fn from(_event: AttributesChangedEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<BoundsChangedEvent> for EventBodyOwned

source§

fn from(_event: BoundsChangedEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<ButtonEvent> for EventBodyOwned

source§

fn from(event: ButtonEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<CharWidthChangedEvent> for EventBodyOwned

source§

fn from(_event: CharWidthChangedEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<ChildrenChangedEvent> for EventBodyOwned

source§

fn from(event: ChildrenChangedEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<CloseEvent> for EventBodyOwned

source§

fn from(_event: CloseEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<ColumnCountChangedEvent> for EventBodyOwned

source§

fn from(_event: ColumnCountChangedEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<ColumnDeletedEvent> for EventBodyOwned

source§

fn from(_event: ColumnDeletedEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<ColumnInsertedEvent> for EventBodyOwned

source§

fn from(_event: ColumnInsertedEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<ColumnReorderedEvent> for EventBodyOwned

source§

fn from(_event: ColumnReorderedEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<ContentChangedEvent> for EventBodyOwned

source§

fn from(_event: ContentChangedEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<CreateEvent> for EventBodyOwned

source§

fn from(_event: CreateEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<DeactivateEvent> for EventBodyOwned

source§

fn from(_event: DeactivateEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<DesktopCreateEvent> for EventBodyOwned

source§

fn from(_event: DesktopCreateEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<DesktopDestroyEvent> for EventBodyOwned

source§

fn from(_event: DesktopDestroyEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<DestroyEvent> for EventBodyOwned

source§

fn from(_event: DestroyEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<EventBodyOwned> for EventBodyQT

source§

fn from(ev: EventBodyOwned) -> EventBodyQT

Converts to this type from the input type.
source§

impl From<EventBodyQT> for EventBodyOwned

source§

fn from(body: EventBodyQT) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<FocusEvent> for EventBodyOwned

source§

fn from(_event: FocusEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<LineChangedEvent> for EventBodyOwned

source§

fn from(_event: LineChangedEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<LineCountChangedEvent> for EventBodyOwned

source§

fn from(_event: LineCountChangedEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<LinkSelectedEvent> for EventBodyOwned

source§

fn from(_event: LinkSelectedEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<LoadCompleteEvent> for EventBodyOwned

source§

fn from(_event: LoadCompleteEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<LoadStoppedEvent> for EventBodyOwned

source§

fn from(_event: LoadStoppedEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<LowerEvent> for EventBodyOwned

source§

fn from(_event: LowerEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<MaximizeEvent> for EventBodyOwned

source§

fn from(_event: MaximizeEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<MinimizeEvent> for EventBodyOwned

source§

fn from(_event: MinimizeEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<ModelChangedEvent> for EventBodyOwned

source§

fn from(_event: ModelChangedEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<ModifiersEvent> for EventBodyOwned

source§

fn from(event: ModifiersEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<MoveEvent> for EventBodyOwned

source§

fn from(_event: MoveEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<PageChangedEvent> for EventBodyOwned

source§

fn from(_event: PageChangedEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<PropertyChangeEvent> for EventBodyOwned

source§

fn from(event: PropertyChangeEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<PropertyChangeEvent> for EventBodyOwned

source§

fn from(event: PropertyChangeEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<RaiseEvent> for EventBodyOwned

source§

fn from(_event: RaiseEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<RelEvent> for EventBodyOwned

source§

fn from(event: RelEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<ReloadEvent> for EventBodyOwned

source§

fn from(_event: ReloadEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<ReparentEvent> for EventBodyOwned

source§

fn from(_event: ReparentEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<ResizeEvent> for EventBodyOwned

source§

fn from(_event: ResizeEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<RestoreEvent> for EventBodyOwned

source§

fn from(_event: RestoreEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<RestyleEvent> for EventBodyOwned

source§

fn from(_event: RestyleEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<RowDeletedEvent> for EventBodyOwned

source§

fn from(_event: RowDeletedEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<RowInsertedEvent> for EventBodyOwned

source§

fn from(_event: RowInsertedEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<RowReorderedEvent> for EventBodyOwned

source§

fn from(_event: RowReorderedEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<SelectionChangedEvent> for EventBodyOwned

source§

fn from(_event: SelectionChangedEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<ShadeEvent> for EventBodyOwned

source§

fn from(_event: ShadeEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<StateChangedEvent> for EventBodyOwned

source§

fn from(event: StateChangedEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<TextAttributesChangedEvent> for EventBodyOwned

source§

fn from(_event: TextAttributesChangedEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<TextBoundsChangedEvent> for EventBodyOwned

source§

fn from(_event: TextBoundsChangedEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<TextCaretMovedEvent> for EventBodyOwned

source§

fn from(event: TextCaretMovedEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<TextChangedEvent> for EventBodyOwned

source§

fn from(event: TextChangedEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<TextSelectionChangedEvent> for EventBodyOwned

source§

fn from(_event: TextSelectionChangedEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<UUshadeEvent> for EventBodyOwned

source§

fn from(_event: UUshadeEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl From<VisibleDataChangedEvent> for EventBodyOwned

source§

fn from(_event: VisibleDataChangedEvent) -> EventBodyOwned

Converts to this type from the input type.
source§

impl PartialEq for EventBodyOwned

source§

fn eq(&self, other: &EventBodyOwned) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for EventBodyOwned

source§

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 TryFrom<&Message> for EventBodyOwned

§

type Error = AtspiError

The type returned in the event of a conversion error.
source§

fn try_from( message: &Message, ) -> Result<EventBodyOwned, <EventBodyOwned as TryFrom<&Message>>::Error>

Performs the conversion.
source§

impl TryFrom<EventBodyOwned> for Property

§

type Error = AtspiError

The type returned in the event of a conversion error.
source§

fn try_from( body: EventBodyOwned, ) -> Result<Property, <Property as TryFrom<EventBodyOwned>>::Error>

Performs the conversion.
source§

impl Type for EventBodyOwned

source§

fn signature() -> Signature<'static>

Get the signature for the implementing type. Read more
source§

impl StructuralPartialEq for EventBodyOwned

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<'de, T> DynamicDeserialize<'de> for T
where T: Type + Deserialize<'de> + ?Sized,

§

type Deserializer = PhantomData<T>

A DeserializeSeed implementation for this type.
source§

fn deserializer_for_signature<S>( signature: S, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
where S: TryInto<Signature<'de>>, <S as TryInto<Signature<'de>>>::Error: Into<Error>,

Get a deserializer compatible with this signature.
source§

impl<T> DynamicType for T
where T: Type + ?Sized,

source§

fn dynamic_signature(&self) -> Signature<'_>

Get the signature for the implementing type. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> NoneValue for T
where T: Default,

§

type NoneType = T

source§

fn null_value() -> T

The none-equivalent value.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,