File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ use crate::{
9
9
use astro_dnssd:: { DNSServiceBuilder , RegisteredDnsService } ;
10
10
use log:: info;
11
11
12
- use super :: ServiceMode ;
12
+ use super :: { MdnsRunBuffers , ServiceMode } ;
13
13
14
14
/// Only for API-compatibility with builtin::MdnsRunner
15
15
pub struct MdnsUdpBuffers ( ( ) ) ;
@@ -91,12 +91,23 @@ impl<'a> MdnsService<'a> {
91
91
}
92
92
93
93
/// Only for API-compatibility with builtin::MdnsRunner
94
- pub async fn run_udp ( & mut self , buffers : & mut MdnsUdpBuffers ) -> Result < ( ) , Error > {
94
+ pub async fn run_piped (
95
+ & mut self ,
96
+ _tx_pipe : & Pipe < ' _ > ,
97
+ _rx_pipe : & Pipe < ' _ > ,
98
+ ) -> Result < ( ) , Error > {
95
99
core:: future:: pending :: < Result < ( ) , Error > > ( ) . await
96
100
}
97
101
98
102
/// Only for API-compatibility with builtin::MdnsRunner
99
- pub async fn run ( & self , _tx_pipe : & Pipe < ' _ > , _rx_pipe : & Pipe < ' _ > ) -> Result < ( ) , Error > {
103
+ pub async fn run < D > (
104
+ & self ,
105
+ _stack : & crate :: transport:: network:: NetworkStack < D > ,
106
+ _buffers : & mut MdnsRunBuffers ,
107
+ ) -> Result < ( ) , Error >
108
+ where
109
+ D : crate :: transport:: network:: NetworkStackDriver ,
110
+ {
100
111
core:: future:: pending :: < Result < ( ) , Error > > ( ) . await
101
112
}
102
113
}
You can’t perform that action at this time.
0 commit comments