Struct atspi_common::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) -> Self

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

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

impl Default for EventBodyOwned

source§

fn default() -> Self

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

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

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::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) -> Self

Converts to this type from the input type.
source§

impl From<ActivateEvent> for EventBodyOwned

source§

fn from(_event: ActivateEvent) -> Self

Converts to this type from the input type.
source§

impl From<ActiveDescendantChangedEvent> for EventBodyOwned

source§

fn from(event: ActiveDescendantChangedEvent) -> Self

Converts to this type from the input type.
source§

impl From<AnnouncementEvent> for EventBodyOwned

source§

fn from(event: AnnouncementEvent) -> Self

Converts to this type from the input type.
source§

impl From<ApplicationChangedEvent> for EventBodyOwned

source§

fn from(_event: ApplicationChangedEvent) -> Self

Converts to this type from the input type.
source§

impl From<AttributesChangedEvent> for EventBodyOwned

source§

fn from(_event: AttributesChangedEvent) -> Self

Converts to this type from the input type.
source§

impl From<AttributesChangedEvent> for EventBodyOwned

source§

fn from(_event: AttributesChangedEvent) -> Self

Converts to this type from the input type.
source§

impl From<BoundsChangedEvent> for EventBodyOwned

source§

fn from(_event: BoundsChangedEvent) -> Self

Converts to this type from the input type.
source§

impl From<ButtonEvent> for EventBodyOwned

source§

fn from(event: ButtonEvent) -> Self

Converts to this type from the input type.
source§

impl From<CharWidthChangedEvent> for EventBodyOwned

source§

fn from(_event: CharWidthChangedEvent) -> Self

Converts to this type from the input type.
source§

impl From<ChildrenChangedEvent> for EventBodyOwned

source§

fn from(event: ChildrenChangedEvent) -> Self

Converts to this type from the input type.
source§

impl From<CloseEvent> for EventBodyOwned

source§

fn from(_event: CloseEvent) -> Self

Converts to this type from the input type.
source§

impl From<ColumnCountChangedEvent> for EventBodyOwned

source§

fn from(_event: ColumnCountChangedEvent) -> Self

Converts to this type from the input type.
source§

impl From<ColumnDeletedEvent> for EventBodyOwned

source§

fn from(_event: ColumnDeletedEvent) -> Self

Converts to this type from the input type.
source§

impl From<ColumnInsertedEvent> for EventBodyOwned

source§

fn from(_event: ColumnInsertedEvent) -> Self

Converts to this type from the input type.
source§

impl From<ColumnReorderedEvent> for EventBodyOwned

source§

fn from(_event: ColumnReorderedEvent) -> Self

Converts to this type from the input type.
source§

impl From<ContentChangedEvent> for EventBodyOwned

source§

fn from(_event: ContentChangedEvent) -> Self

Converts to this type from the input type.
source§

impl From<CreateEvent> for EventBodyOwned

source§

fn from(_event: CreateEvent) -> Self

Converts to this type from the input type.
source§

impl From<DeactivateEvent> for EventBodyOwned

source§

fn from(_event: DeactivateEvent) -> Self

Converts to this type from the input type.
source§

impl From<DesktopCreateEvent> for EventBodyOwned

source§

fn from(_event: DesktopCreateEvent) -> Self

Converts to this type from the input type.
source§

impl From<DesktopDestroyEvent> for EventBodyOwned

source§

fn from(_event: DesktopDestroyEvent) -> Self

Converts to this type from the input type.
source§

impl From<DestroyEvent> for EventBodyOwned

source§

fn from(_event: DestroyEvent) -> Self

Converts to this type from the input type.
source§

impl From<EventBodyOwned> for EventBodyQT

source§

fn from(ev: EventBodyOwned) -> Self

Converts to this type from the input type.
source§

impl From<EventBodyQT> for EventBodyOwned

source§

fn from(body: EventBodyQT) -> Self

Converts to this type from the input type.
source§

impl From<FocusEvent> for EventBodyOwned

source§

fn from(_event: FocusEvent) -> Self

Converts to this type from the input type.
source§

impl From<LineChangedEvent> for EventBodyOwned

source§

fn from(_event: LineChangedEvent) -> Self

Converts to this type from the input type.
source§

impl From<LineCountChangedEvent> for EventBodyOwned

source§

fn from(_event: LineCountChangedEvent) -> Self

Converts to this type from the input type.
source§

impl From<LinkSelectedEvent> for EventBodyOwned

source§

fn from(_event: LinkSelectedEvent) -> Self

Converts to this type from the input type.
source§

impl From<LoadCompleteEvent> for EventBodyOwned

source§

fn from(_event: LoadCompleteEvent) -> Self

Converts to this type from the input type.
source§

impl From<LoadStoppedEvent> for EventBodyOwned

source§

fn from(_event: LoadStoppedEvent) -> Self

Converts to this type from the input type.
source§

impl From<LowerEvent> for EventBodyOwned

source§

fn from(_event: LowerEvent) -> Self

Converts to this type from the input type.
source§

impl From<MaximizeEvent> for EventBodyOwned

source§

fn from(_event: MaximizeEvent) -> Self

Converts to this type from the input type.
source§

impl From<MinimizeEvent> for EventBodyOwned

source§

fn from(_event: MinimizeEvent) -> Self

Converts to this type from the input type.
source§

impl From<ModelChangedEvent> for EventBodyOwned

source§

fn from(_event: ModelChangedEvent) -> Self

Converts to this type from the input type.
source§

impl From<ModifiersEvent> for EventBodyOwned

source§

fn from(event: ModifiersEvent) -> Self

Converts to this type from the input type.
source§

impl From<MoveEvent> for EventBodyOwned

source§

fn from(_event: MoveEvent) -> Self

Converts to this type from the input type.
source§

impl From<PageChangedEvent> for EventBodyOwned

source§

fn from(_event: PageChangedEvent) -> Self

Converts to this type from the input type.
source§

impl From<PropertyChangeEvent> for EventBodyOwned

source§

fn from(event: PropertyChangeEvent) -> Self

Converts to this type from the input type.
source§

impl From<PropertyChangeEvent> for EventBodyOwned

source§

fn from(event: PropertyChangeEvent) -> Self

Converts to this type from the input type.
source§

impl From<RaiseEvent> for EventBodyOwned

source§

fn from(_event: RaiseEvent) -> Self

Converts to this type from the input type.
source§

impl From<RelEvent> for EventBodyOwned

source§

fn from(event: RelEvent) -> Self

Converts to this type from the input type.
source§

impl From<ReloadEvent> for EventBodyOwned

source§

fn from(_event: ReloadEvent) -> Self

Converts to this type from the input type.
source§

impl From<ReparentEvent> for EventBodyOwned

source§

fn from(_event: ReparentEvent) -> Self

Converts to this type from the input type.
source§

impl From<ResizeEvent> for EventBodyOwned

source§

fn from(_event: ResizeEvent) -> Self

Converts to this type from the input type.
source§

impl From<RestoreEvent> for EventBodyOwned

source§

fn from(_event: RestoreEvent) -> Self

Converts to this type from the input type.
source§

impl From<RestyleEvent> for EventBodyOwned

source§

fn from(_event: RestyleEvent) -> Self

Converts to this type from the input type.
source§

impl From<RowDeletedEvent> for EventBodyOwned

source§

fn from(_event: RowDeletedEvent) -> Self

Converts to this type from the input type.
source§

impl From<RowInsertedEvent> for EventBodyOwned

source§

fn from(_event: RowInsertedEvent) -> Self

Converts to this type from the input type.
source§

impl From<RowReorderedEvent> for EventBodyOwned

source§

fn from(_event: RowReorderedEvent) -> Self

Converts to this type from the input type.
source§

impl From<SelectionChangedEvent> for EventBodyOwned

source§

fn from(_event: SelectionChangedEvent) -> Self

Converts to this type from the input type.
source§

impl From<ShadeEvent> for EventBodyOwned

source§

fn from(_event: ShadeEvent) -> Self

Converts to this type from the input type.
source§

impl From<StateChangedEvent> for EventBodyOwned

source§

fn from(event: StateChangedEvent) -> Self

Converts to this type from the input type.
source§

impl From<TextAttributesChangedEvent> for EventBodyOwned

source§

fn from(_event: TextAttributesChangedEvent) -> Self

Converts to this type from the input type.
source§

impl From<TextBoundsChangedEvent> for EventBodyOwned

source§

fn from(_event: TextBoundsChangedEvent) -> Self

Converts to this type from the input type.
source§

impl From<TextCaretMovedEvent> for EventBodyOwned

source§

fn from(event: TextCaretMovedEvent) -> Self

Converts to this type from the input type.
source§

impl From<TextChangedEvent> for EventBodyOwned

source§

fn from(event: TextChangedEvent) -> Self

Converts to this type from the input type.
source§

impl From<TextSelectionChangedEvent> for EventBodyOwned

source§

fn from(_event: TextSelectionChangedEvent) -> Self

Converts to this type from the input type.
source§

impl From<UUshadeEvent> for EventBodyOwned

source§

fn from(_event: UUshadeEvent) -> Self

Converts to this type from the input type.
source§

impl From<VisibleDataChangedEvent> for EventBodyOwned

source§

fn from(_event: VisibleDataChangedEvent) -> Self

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::Ok, __S::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<Self, Self::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<Self, Self::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>,