Comments (2)
Thanks for the report !
This is fixed in 0.6.0
from adb_client.
My current use case below.. This gives compliation error: expected fn pointer, found closure
pub async fn adb_track_devices(c: &mut AdbTcpConnexion, tx: tokio::sync::MutexGuard<'_, Sender<String>>) -> Result<(), String> {
let callback = |device:adb_client::Device| {
let res = tx
.send(format!("{}", device))
.map_err(|e| e.to_string());
return res;
};
let res = c.track_devices(callback);
match res {
Err(e) => {
return Err(e.to_string());
}
Ok(_o) => {
return Ok(());
}
}
}
from adb_client.
Related Issues (11)
- Hi, i need help with adb_client ,thanks HOT 2
- Cleaner way to have [[bin]] and [lib] together HOT 1
- Is it possible to capture the output from `shell_command`? HOT 1
- Error on windows HOT 2
- Adding ADB Pairing HOT 5
- Adding ADB install command
- Add Adb run command
- can shell_command return shell output ?
- Incorrect devices info parsing HOT 2
- Error when calling more than once method of AdbTcpConnection with the same object
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adb_client.