base_scheduler/socket_reuse_address.rs
1// Released under the MIT License.
2// Copyright, 2026, by Samuel Williams.
3
4/// Boolean `SO_REUSEADDR`. Set before binding when required by the application.
5///
6/// This preserves OS-specific address-sharing rules, including Windows allowing an already-used address to be rebound. It does not provide portable exclusive binding or `SO_REUSEPORT` semantics.
7#[derive(Clone, Copy, Debug)]
8pub struct SocketReuseAddress;
9
10impl crate::SocketOption for SocketReuseAddress {
11 type Value = bool;
12}