File tree 3 files changed +5
-1
lines changed
3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,10 @@ use super::DefaultRouteDetails;
13
13
pub enum Error {
14
14
#[ error( "IO {0}" ) ]
15
15
Io ( #[ from] std:: io:: Error ) ,
16
+ #[ cfg( not( target_os = "android" ) ) ]
16
17
#[ error( "no netlink response" ) ]
17
18
NoResponse ,
19
+ #[ cfg( not( target_os = "android" ) ) ]
18
20
#[ error( "interface not found" ) ]
19
21
InterfaceNotFound ,
20
22
#[ error( "iface field is missing" ) ]
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ pub enum Error {
19
19
Io ( #[ from] std:: io:: Error ) ,
20
20
#[ error( "not route found" ) ]
21
21
NoRoute ,
22
+ #[ error( "WMI {0}" ) ]
23
+ Wmi ( #[ from] wmi:: WMIError ) ,
22
24
}
23
25
24
26
fn get_default_route ( ) -> Result < DefaultRouteDetails , Error > {
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ impl CallbackHandler {
102
102
fn register_unicast_address_change_callback (
103
103
& mut self ,
104
104
cb : UnicastCallback ,
105
- ) -> Result < UnicastCallbackHandle > {
105
+ ) -> Result < UnicastCallbackHandle , Error > {
106
106
trace ! ( "registering unicast callback" ) ;
107
107
let mut handle = Handle :: default ( ) ;
108
108
let cb = Arc :: new ( cb) ;
You can’t perform that action at this time.
0 commit comments