From e53dd32f039f31378d9355b1daf86951261272ba Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 13 Jan 2025 08:02:55 -0800 Subject: [PATCH] Rename `Shutdown::ReadWrite` to `Shutdown::Both`. This better [aligns with std]. [aligns with std]: https://doc.rust-lang.org/stable/std/net/enum.Shutdown.html#variant.Both --- src/net/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/types.rs b/src/net/types.rs index 80d4bc854..f41fa1fd8 100644 --- a/src/net/types.rs +++ b/src/net/types.rs @@ -1442,7 +1442,7 @@ pub enum Shutdown { /// `SHUT_WR`—Disable further write operations. Write = c::SHUT_WR as _, /// `SHUT_RDWR`—Disable further read and write operations. - ReadWrite = c::SHUT_RDWR as _, + Both = c::SHUT_RDWR as _, } bitflags! {