Skip to main content

net_wire/kcp/
mod.rs

1//! Allocation-free KCP wire segment views and stateless scalar helpers.
2//!
3//! This module intentionally excludes KCP endpoint state, retransmission, timers, congestion
4//! control, callbacks, and transport policy. When both KCP and UDP are enabled, it provides only
5//! an immutable UDP-payload adapter.
6
7mod builder;
8mod error;
9mod segment;
10mod segments;
11mod types;
12#[cfg(feature = "udp")]
13mod udp;
14
15pub use builder::KcpSegmentBuilder;
16pub use error::{KcpSegmentBuildError, KcpSegmentParseError, KcpSegmentsParseError};
17pub use segment::{KCP_SEGMENT_HEADER_LEN, KcpSegment, KcpSegmentMut};
18pub use segments::{KcpSegmentIter, KcpSegments};
19pub use types::{
20    KcpCommand, KcpConversationId, KcpFragment, KcpKnownCommand, KcpSequenceNumber, KcpTimestamp,
21    KcpUnacknowledged,
22};