base-scheduler 0.3.0

Explicit, runtime-independent scheduler capabilities for protocol libraries
Documentation
1
2
3
4
5
6
7
8
9
// Released under the MIT License.
// Copyright, 2026, by Samuel Williams.

/// Portable input flags for socket receive operations.
#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
pub struct SocketRecvFlags {
    /// Copy queued bytes without consuming them (`MSG_PEEK`). Concurrent readers may consume them before a later receive; peeking reserves nothing.
    pub peek: bool,
}