rust_expect/
util.rs

1//! Utility modules for expect operations.
2//!
3//! This module provides various utilities for timeout handling,
4//! byte manipulation, backpressure management, memory-efficient buffers,
5//! and zero-copy I/O operations.
6
7pub mod backpressure;
8pub mod buffer;
9pub mod bytes;
10pub mod timeout;
11pub mod zerocopy;
12
13// Re-export commonly used types
14pub use backpressure::{Backpressure, RateLimiter, TokenBucket};
15pub use buffer::{
16    AtomicBufferSize, LargeBufferConfig, RingBuffer, SpillBuffer, allocate_page_aligned, page_size,
17};
18pub use bytes::{
19    EscapedBytes, escape_bytes, find_all_patterns, find_pattern, hexdump, replace_pattern,
20    strip_ansi, to_visible_string, unescape_bytes,
21};
22pub use timeout::{Deadline, TimeoutConfig, TimeoutExt};
23pub use zerocopy::{BorrowedView, BytesBuffer, ReadPool, VecWriter, ZeroCopySource};