pub struct AvailableEvent {
pub item: ObjectRefOwned,
pub socket: ObjectRefOwned,
}Expand description
An event that is emitted when the registry daemon has started.
The accessibility registry emits this signal early during startup,
when it has registered with the DBus daemon and is available for
calls from applications.
Fields§
§item: ObjectRefOwnedThe emitting ObjectRef.
socket: ObjectRefOwnedThe ObjectRef for the Registry’s root object.
Trait Implementations§
Source§impl Clone for AvailableEvent
impl Clone for AvailableEvent
Source§fn clone(&self) -> AvailableEvent
fn clone(&self) -> AvailableEvent
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 AvailableEvent
impl DBusInterface for AvailableEvent
Source§const DBUS_INTERFACE: &'static str = "org.a11y.atspi.Socket"
const DBUS_INTERFACE: &'static str = "org.a11y.atspi.Socket"
A static interface string for
DBus.
This should usually be a string that looks like this: "org.a11y.atspi.Event.*";Source§impl DBusMatchRule for AvailableEvent
impl DBusMatchRule for AvailableEvent
Source§const MATCH_RULE_STRING: &'static str = "type='signal',interface='org.a11y.atspi.Socket',member='Available'"
const MATCH_RULE_STRING: &'static str = "type='signal',interface='org.a11y.atspi.Socket',member='Available'"
A static match rule string for
DBus.Source§impl DBusMember for AvailableEvent
impl DBusMember for AvailableEvent
Source§const DBUS_MEMBER: &'static str = "Available"
const DBUS_MEMBER: &'static str = "Available"
The event’s
DBus member.Source§impl Debug for AvailableEvent
impl Debug for AvailableEvent
Source§impl Default for AvailableEvent
impl Default for AvailableEvent
Source§fn default() -> AvailableEvent
fn default() -> AvailableEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AvailableEvent
impl<'de> Deserialize<'de> for AvailableEvent
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl EventProperties for AvailableEvent
impl EventProperties for AvailableEvent
fn sender(&self) -> UniqueName<'_>
fn path(&self) -> ObjectPath<'_>
fn object_ref(&self) -> ObjectRef<'_>
Source§impl EventTypeProperties for AvailableEvent
impl EventTypeProperties for AvailableEvent
Source§impl From<AvailableEvent> for Event
impl From<AvailableEvent> for Event
Source§fn from(ev: AvailableEvent) -> Event
fn from(ev: AvailableEvent) -> Event
Converts to this type from the input type.
Source§impl Hash for AvailableEvent
impl Hash for AvailableEvent
Source§impl MessageConversion<'_> for AvailableEvent
impl MessageConversion<'_> for AvailableEvent
Source§fn from_message_unchecked_parts(
item: ObjectRef<'_>,
body: DbusBody,
) -> Result<Self, AtspiError>
fn from_message_unchecked_parts( item: ObjectRef<'_>, body: DbusBody, ) -> Result<Self, 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(
msg: &Message,
header: &Header<'_>,
) -> Result<Self, AtspiError>
fn from_message_unchecked( msg: &Message, header: &Header<'_>, ) -> Result<Self, AtspiError>
Build an event from a
zbus::Message reference.
This function will not check for any of the following error conditions: Read moreSource§impl<'a> MessageConversionExt<'a, ObjectRef<'a>> for AvailableEvent
impl<'a> MessageConversionExt<'a, ObjectRef<'a>> for AvailableEvent
Source§fn try_from_message(msg: &Message, hdr: &Header<'_>) -> Result<Self, AtspiError>
fn try_from_message(msg: &Message, hdr: &Header<'_>) -> Result<Self, 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 AvailableEvent
impl PartialEq for AvailableEvent
Source§impl RegistryEventString for AvailableEvent
impl RegistryEventString for AvailableEvent
Source§const REGISTRY_EVENT_STRING: &'static str = ""
const REGISTRY_EVENT_STRING: &'static str = ""
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 AvailableEvent
impl Serialize for AvailableEvent
Source§impl TryFrom<&Message> for AvailableEvent
impl TryFrom<&Message> for AvailableEvent
Source§impl TryFrom<AvailableEvent> for Message
impl TryFrom<AvailableEvent> for Message
Source§type Error = AtspiError
type Error = AtspiError
The type returned in the event of a conversion error.
Source§impl TryFrom<Event> for AvailableEvent
impl TryFrom<Event> for AvailableEvent
impl DBusProperties for AvailableEvent
impl Eq for AvailableEvent
impl StructuralPartialEq for AvailableEvent
Auto Trait Implementations§
impl Freeze for AvailableEvent
impl RefUnwindSafe for AvailableEvent
impl Send for AvailableEvent
impl Sync for AvailableEvent
impl Unpin for AvailableEvent
impl UnwindSafe for AvailableEvent
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