Separate the async bluetooth handling from networking code.

They're not at all related, besides both being asynchronous. This change adds
a little extra code in response_async(), but makes this code more readable
and reduces the unnecessary indirection.

This change also makes the build system slightly more parallel, by dropping
the dependency on bluetooth_traits from net_traits.
This commit is contained in:
Ms2ger 2016-12-21 14:39:10 +01:00
parent c2e4e4295e
commit 7af7a10e7e
6 changed files with 25 additions and 34 deletions

View file

@ -108,7 +108,3 @@ pub enum BluetoothResponse {
EnableNotification(()),
WatchAdvertisements(()),
}
pub trait BluetoothResponseListener {
fn response(&mut self, response: BluetoothResponseResult);
}