base_scheduler/socket_recv_flags.rs
1// Released under the MIT License.
2// Copyright, 2026, by Samuel Williams.
3
4/// Portable input flags for socket receive operations.
5#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
6pub struct SocketRecvFlags {
7 /// Copy queued bytes without consuming them (`MSG_PEEK`). Concurrent readers may consume them before a later receive; peeking reserves nothing.
8 pub peek: bool,
9}