mod adapters;
mod async_io;
pub mod buffered;
mod capacity_const;
pub mod std_io;
mod traits;
mod util;
mod wrappers;
pub use adapters::{
BoxAsyncInput,
BoxAsyncOutput,
BoxInput,
BoxOutput,
InputRef,
OutputRef,
};
#[cfg(all(feature = "futures-io", not(miri)))]
pub use adapters::{
FuturesAsyncRead,
FuturesAsyncWrite,
FuturesInput,
FuturesOutput,
};
#[cfg(all(feature = "tokio", not(miri)))]
pub use adapters::{
TokioAsyncRead,
TokioAsyncWrite,
TokioInput,
TokioOutput,
};
pub use async_io::{
CloseFuture,
FlushFuture,
ReadExactFuture,
ReadFullyFuture,
ReadFuture,
WriteFullyFuture,
WriteFuture,
};
pub use buffered::{
AsyncBufferedInput,
AsyncBufferedOutput,
Buffer,
BufferedInput,
BufferedOutput,
EnsuredBufferedInput,
EnsuredBufferedOutput,
};
pub use capacity_const::{
DEFAULT_BUFFER_CAPACITY,
DEFAULT_COMPARE_BUFFER_SIZE,
DEFAULT_COPY_BUFFER_SIZE,
};
pub use traits::{
AsyncClose,
AsyncInput,
AsyncOutput,
Input,
Output,
PinnedAsyncInputExt,
PinnedAsyncOutputExt,
Seekable,
SeekableInput,
SeekableOutput,
};
pub use util::Streams;
#[allow(unused_imports)]
pub use util::UncheckedSlice;
#[cfg(coverage)]
#[doc(hidden)]
pub use util::{
coverage_add_item_count_overflow,
coverage_fail_next_add_item_count,
coverage_fail_next_reserve,
coverage_fail_next_string_reserve,
coverage_fail_reserve_above,
coverage_fail_reserve_after,
coverage_reset_add_item_count_hooks,
coverage_reset_reserve_hooks,
};
pub use util::{
try_reserve_string,
try_reserve_vec,
};
pub use wrappers::{
AsyncChecksumInput,
AsyncChecksumOutput,
AsyncCountingInput,
AsyncCountingOutput,
AsyncLimitInput,
AsyncLimitOutput,
ChecksumInput,
ChecksumOutput,
CountingInput,
CountingOutput,
LimitInput,
LimitOutput,
PositionGuard,
SyncSeekTeeInput,
TeeInput,
TeeOutput,
};