Benign crates 8,875,944 installs Download

atspi-connection 0.7.0

Legitimate accessibility library

“A method of connecting, querying, sending and receiving over AT-SPI.”

Creates Rust command via qualified pathRust Command captures child output
SHA-2569e025d6eacff27edb63211dc40bde8cadd53b1d6043233ee678b170d8f9f6465

Evidence

imports atspi_common as common lines 8–26
8:2… ompile_error!("You must specify at least one of the `async-std` or `tokio` features.");
9
10pub use atspi_common as common;
11
12use atspi_proxies::{
13 bus::{BusProxy, StatusProxy},
14 registry::RegistryProxy,
15};
16use common::error::AtspiError;
17use common::events::{BusProperties, Event, EventProperties, HasMatchRule, HasRegistryEventString};
18use futures_lite::stream::{Stream, StreamExt};
19use std::ops::Deref;
20use zbus::{fdo::DBusProxy, Address, MatchRule, MessageStream, MessageType};
21
22/// A wrapper for results whose error type is [`AtspiError`].
23pub type AtspiResult<T> = std::result::Result<T, AtspiError>;
24
25/// A connection to the at-spi bus
26pub …
English function-word token "and" lines 64–69
64:15… cessibility bus.
65 ///
66 /// You may want to call this if you have the accessibility bus address and want a connection with
67 /// a convenient async event stream provisioning.
68 ///
69 /// Without address, you will want to …
assert! macro lines 104–110
104:15… ::error::Error;
105 ///
106 /// # fn main() {
107 /// # assert!(tokio_test::block_on(example()).is_ok());
108 /// # }
109 ///
110 /// # async fn example() -> Result<(), …
Invokes a D-Bus command-line client lines 114–126
114:45… ();
115 /// std::pin::pin!(&mut events);
116 /// # let output = std::process::Command::new("busctl")
117 /// # .arg("--user")
118 /// # .arg("call")
⋯8 lines
Command field or assignment key lines 131–133
131:16… unwrap();
132 /// # let mut base_cmd = std::process::Command::new("busctl");
133 /// # let thing = base …

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.