mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
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:
parent
c2e4e4295e
commit
7af7a10e7e
6 changed files with 25 additions and 34 deletions
|
@ -108,7 +108,3 @@ pub enum BluetoothResponse {
|
|||
EnableNotification(()),
|
||||
WatchAdvertisements(()),
|
||||
}
|
||||
|
||||
pub trait BluetoothResponseListener {
|
||||
fn response(&mut self, response: BluetoothResponseResult);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue