INNER CODE UNIT · Rust

new

eepnet/emissary · emissary-cli/src/proxy/http/mod.rs:382

        async fn new() -> Self {
            let listener = TcpListener::bind("127.0.0.1:0").await.unwrap();

            Self {
                listener,
                cmd_tx: None,
            }
        }

        async fn with_command_tx(cmd_tx: Sender<String>) -> Self {
            let listener = TcpListener::bind("127.0.0.1:0").await.unwrap();

            Self {
                listener,
                cmd_tx: Some(cmd_tx),
            }
        }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…