How to close TCPConnection with a function?

Thank you for answering.

use super::*;

#[test]
fn bridge_tcp_server() {
    let (server, _result) = Server::new().unwrap();
    server.listen_and_serve();
}

This is my test code which works.
But it does not stop on

    Finished test [unoptimized + debuginfo] target(s) in 1.36s
     Running target/debug/deps/amf0-652cd166ce1912be

running 1 test
test tests::it_works ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/inferno_rtmp_engine-d3654c5273df6f45

running 1 test

Then I stop the test with Ctrl-c.
How do you stop the server?

Thank you.