pidcat 0.2.1

An adb logcat wrapper and filters
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use futures::StreamExt;
use pidcat::source::*;
use pidcat::LogStream;

#[tokio::main]
async fn main() {
    let source = ADBSource::new(None);

    let mut logs: LogStream = source.source().await;

    while let Some(r) = logs.next().await {
        if let Ok(log) = r {
            println!("{}", log);
        }
    }
}