equal
deleted
inserted
replaced
214 #[cfg(feature = "tls-connections")] |
214 #[cfg(feature = "tls-connections")] |
215 tls: TlsListener, |
215 tls: TlsListener, |
216 server_state: ServerState, |
216 server_state: ServerState, |
217 clients: Slab<Sender<Bytes>>, |
217 clients: Slab<Sender<Bytes>>, |
218 update_tx: Sender<ClientUpdate>, |
218 update_tx: Sender<ClientUpdate>, |
219 update_rx: Receiver<ClientUpdate> |
219 update_rx: Receiver<ClientUpdate>, |
220 } |
220 } |
221 |
221 |
222 impl NetworkLayer { |
222 impl NetworkLayer { |
223 pub async fn run(&mut self) { |
223 pub async fn run(&mut self) { |
224 async fn accept_plain_branch( |
224 async fn accept_plain_branch( |
446 acceptor: self.tls_acceptor.expect("No TLS acceptor provided"), |
446 acceptor: self.tls_acceptor.expect("No TLS acceptor provided"), |
447 }, |
447 }, |
448 server_state, |
448 server_state, |
449 clients, |
449 clients, |
450 update_tx, |
450 update_tx, |
451 update_rx |
451 update_rx, |
452 } |
452 } |
453 } |
453 } |
454 } |
454 } |