buffet 0.3.3

Thread-local buffer pool for the `loona` crate.
Documentation
use crate::io::IntoHalves;

#[cfg(all(target_os = "linux", feature = "uring"))]
mod net_uring;

#[cfg(all(target_os = "linux", feature = "uring"))]
pub use net_uring::*;

#[cfg(not(all(target_os = "linux", feature = "uring")))]
mod net_noring;

#[cfg(not(all(target_os = "linux", feature = "uring")))]
pub use net_noring::*;

impl IntoHalves for tokio::net::TcpStream {
    type Read = tokio::net::tcp::OwnedReadHalf;
    type Write = tokio::net::tcp::OwnedWriteHalf;

    fn into_halves(self) -> (Self::Read, Self::Write) {
        self.into_split()
    }
}