Browse Source

Remove fledgling server from client crate.

wip
Titouan Rigoudy 4 years ago
parent
commit
35dbad1ded
2 changed files with 1 additions and 27 deletions
  1. +1
    -1
      client/src/testing/mod.rs
  2. +0
    -26
      client/src/testing/server.rs

+ 1
- 1
client/src/testing/mod.rs View File

@ -1 +1 @@
mod server;
// TODO: Define handler(s).

+ 0
- 26
client/src/testing/server.rs View File

@ -1,26 +0,0 @@
use std::net::SocketAddr;
use anyhow::Context;
use tokio::net::TcpListener;
use tokio::sync::oneshot;
struct ServerHandle {
address: SocketAddr,
shutdown_tx: oneshot::Sender<()>,
}
struct Server {
listener: TcpListener,
shutdown_rx: oneshot::Receiver<()>,
}
struct ServerBuilder {
// TODO
}
impl ServerBuilder {
pub async fn bind(self) -> anyhow::Result<(Server, ServerHandle)> {
let listener = TcpListener::bind("localhost:0").await.context("binding")?;
unimplemented!();
}
}

Loading…
Cancel
Save