rl_lang/docs/entries/stdlib/net/tcp_close.rs
1use crate::docs::entry::FnEntry;
2
3pub static TCP_CLOSE: FnEntry = FnEntry {
4 signature: "tcp_close(handle)",
5 description: "closes a TCP listener or stream handle and frees its slot; using the handle again afterward errors",
6 example: r#"
7get std::net::tcp_close
8
9tcp_close(stream)"#,
10 expected_output: None,
11 returns: "Result[null]",
12 errors: None,
13 see_also: &["tcp_shutdown"],
14 since: Some("v0.1.5"),
15};