lookit 0.3.1

Asynchronously connect to devices
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use pasts::prelude::*;

use crate::{Device, Events, Found, Interface, Kind, Platform};

impl Interface for Platform {
    type Searcher = BoxNotify<'static, Found>;

    fn searcher(_kind: Kind) -> Option<BoxNotify<'static, Found>> {
        None
    }

    fn open(found: Found, _events: Events) -> Result<Device, Found> {
        Err(found)
    }
}