base_scheduler/socket_option.rs
1// Released under the MIT License.
2// Copyright, 2026, by Samuel Williams.
3
4/// A typed socket-option identifier. This describes its value, not how an operating system represents or accesses it.
5///
6/// Backends implement `SocketGetOption<Self>` and/or `SocketSetOption<Self>` for each supported operation and option; `SocketOptions<Self>` automatically aggregates both. Additional option types can be defined without changing the core `SocketOperation` trait or introducing a runtime option enum.
7pub trait SocketOption: Send {
8 /// The type of this option's value.
9 type Value: Send;
10}