pub struct SelectionChangedEvent {
pub item: ObjectRefOwned,
}Expand description
The selection of this item has changed.
For example: when a selection from a series of checkboxes is changed, this will change the state of the child, and cause a SelectionChangedEvent on the parent.
Fields§
§item: ObjectRefOwnedThe crate::ObjectRef which the event applies to.
Trait Implementations§
Source§impl Clone for SelectionChangedEvent
impl Clone for SelectionChangedEvent
Source§fn clone(&self) -> SelectionChangedEvent
fn clone(&self) -> SelectionChangedEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl DBusInterface for SelectionChangedEvent
impl DBusInterface for SelectionChangedEvent
Source§const DBUS_INTERFACE: &'static str = "org.a11y.atspi.Event.Object"
const DBUS_INTERFACE: &'static str = "org.a11y.atspi.Event.Object"
A static interface string for
DBus.
This should usually be a string that looks like this: "org.a11y.atspi.Event.*";Source§impl DBusMatchRule for SelectionChangedEvent
impl DBusMatchRule for SelectionChangedEvent
Source§const MATCH_RULE_STRING: &'static str = "type='signal',interface='org.a11y.atspi.Event.Object',member='SelectionChanged'"
const MATCH_RULE_STRING: &'static str = "type='signal',interface='org.a11y.atspi.Event.Object',member='SelectionChanged'"
A static match rule string for
DBus.Source§impl DBusMember for SelectionChangedEvent
impl DBusMember for SelectionChangedEvent
Source§const DBUS_MEMBER: &'static str = "SelectionChanged"
const DBUS_MEMBER: &'static str = "SelectionChanged"
The event’s
DBus member.Source§impl Debug for SelectionChangedEvent
impl Debug for SelectionChangedEvent
Source§impl Default for SelectionChangedEvent
impl Default for SelectionChangedEvent
Source§fn default() -> SelectionChangedEvent
fn default() -> SelectionChangedEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SelectionChangedEvent
impl<'de> Deserialize<'de> for SelectionChangedEvent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SelectionChangedEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SelectionChangedEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl EventProperties for SelectionChangedEvent
impl EventProperties for SelectionChangedEvent
fn sender(&self) -> UniqueName<'_>
fn path(&self) -> ObjectPath<'_>
fn object_ref(&self) -> ObjectRef<'_>
Source§impl From<ObjectRef<'_>> for SelectionChangedEvent
impl From<ObjectRef<'_>> for SelectionChangedEvent
Source§fn from(obj_ref: ObjectRef<'_>) -> SelectionChangedEvent
fn from(obj_ref: ObjectRef<'_>) -> SelectionChangedEvent
Converts to this type from the input type.
Source§impl From<SelectionChangedEvent> for Event
impl From<SelectionChangedEvent> for Event
Source§fn from(event_variant: SelectionChangedEvent) -> Event
fn from(event_variant: SelectionChangedEvent) -> Event
Converts to this type from the input type.
Source§impl From<SelectionChangedEvent> for ObjectEvents
impl From<SelectionChangedEvent> for ObjectEvents
Source§fn from(specific_event: SelectionChangedEvent) -> ObjectEvents
fn from(specific_event: SelectionChangedEvent) -> ObjectEvents
Converts to this type from the input type.
Source§impl Hash for SelectionChangedEvent
impl Hash for SelectionChangedEvent
Source§impl MessageConversion<'_> for SelectionChangedEvent
impl MessageConversion<'_> for SelectionChangedEvent
Source§fn from_message_unchecked_parts(
obj_ref: ObjectRef<'_>,
_body: Body,
) -> Result<SelectionChangedEvent, AtspiError>
fn from_message_unchecked_parts( obj_ref: ObjectRef<'_>, _body: Body, ) -> Result<SelectionChangedEvent, AtspiError>
Build an event from an
ObjectRef and Self::Body.
This function will not check for any of the following error conditions: Read moreSource§fn from_message_unchecked(
_: &Message,
header: &Header<'_>,
) -> Result<SelectionChangedEvent, AtspiError>
fn from_message_unchecked( _: &Message, header: &Header<'_>, ) -> Result<SelectionChangedEvent, AtspiError>
Build an event from a
zbus::Message reference.
This function will not check for any of the following error conditions: Read moreSource§fn body(&self) -> <SelectionChangedEvent as MessageConversion<'_>>::Body<'_>
fn body(&self) -> <SelectionChangedEvent as MessageConversion<'_>>::Body<'_>
The body of the object.
Source§impl<'msg> MessageConversionExt<'msg, EventBody<'msg>> for SelectionChangedEvent
impl<'msg> MessageConversionExt<'msg, EventBody<'msg>> for SelectionChangedEvent
Source§fn try_from_message(
msg: &'msg Message,
header: &Header<'_>,
) -> Result<SelectionChangedEvent, AtspiError>
fn try_from_message( msg: &'msg Message, header: &Header<'_>, ) -> Result<SelectionChangedEvent, AtspiError>
Convert a
zbus::Message into this event type.
Does all the validation for you. Read moreSource§fn validate_interface(header: &Header<'_>) -> Result<(), AtspiError>
fn validate_interface(header: &Header<'_>) -> Result<(), AtspiError>
Validate the interface string via
zbus::message::Header::interface against Self’s assignment of DBusInterface::DBUS_INTERFACE Read moreSource§fn validate_member(hdr: &Header<'_>) -> Result<(), AtspiError>
fn validate_member(hdr: &Header<'_>) -> Result<(), AtspiError>
Validate the member string via
zbus::message::Header::member against Self’s assignment of DBusMember::DBUS_MEMBER Read moreSource§fn validate_body(msg: &Message) -> Result<(), AtspiError>
fn validate_body(msg: &Message) -> Result<(), AtspiError>
Source§impl PartialEq for SelectionChangedEvent
impl PartialEq for SelectionChangedEvent
Source§impl RegistryEventString for SelectionChangedEvent
impl RegistryEventString for SelectionChangedEvent
Source§const REGISTRY_EVENT_STRING: &'static str = "object:selection-changed"
const REGISTRY_EVENT_STRING: &'static str = "object:selection-changed"
A registry event string for registering for event receiving via the
RegistryProxy.
This should be deprecated in favour of composing the string from DBusMember::DBUS_MEMBER and DBusInterface::DBUS_INTERFACE.Source§impl Serialize for SelectionChangedEvent
impl Serialize for SelectionChangedEvent
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,
Serialize this value into the given Serde serializer. Read more
Source§impl<'msg> TryFrom<&'msg Message> for SelectionChangedEvent
impl<'msg> TryFrom<&'msg Message> for SelectionChangedEvent
Source§type Error = AtspiError
type Error = AtspiError
The type returned in the event of a conversion error.
Source§fn try_from(
msg: &'msg Message,
) -> Result<SelectionChangedEvent, <SelectionChangedEvent as TryFrom<&'msg Message>>::Error>
fn try_from( msg: &'msg Message, ) -> Result<SelectionChangedEvent, <SelectionChangedEvent as TryFrom<&'msg Message>>::Error>
Performs the conversion.
Source§impl TryFrom<Event> for SelectionChangedEvent
impl TryFrom<Event> for SelectionChangedEvent
Source§type Error = AtspiError
type Error = AtspiError
The type returned in the event of a conversion error.
Source§fn try_from(
generic_event: Event,
) -> Result<SelectionChangedEvent, <SelectionChangedEvent as TryFrom<Event>>::Error>
fn try_from( generic_event: Event, ) -> Result<SelectionChangedEvent, <SelectionChangedEvent as TryFrom<Event>>::Error>
Performs the conversion.
impl DBusProperties for SelectionChangedEvent
impl Eq for SelectionChangedEvent
impl StructuralPartialEq for SelectionChangedEvent
Auto Trait Implementations§
impl Freeze for SelectionChangedEvent
impl RefUnwindSafe for SelectionChangedEvent
impl Send for SelectionChangedEvent
impl Sync for SelectionChangedEvent
impl Unpin for SelectionChangedEvent
impl UnwindSafe for SelectionChangedEvent
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
Mutably borrows from an owned value. Read more