#[cfg(feature = "encryption")] use crate::cfb8::CipherError; use mcproto_rs::protocol::State; pub trait CraftWrapper { fn into_inner(self) -> I; } pub trait CraftIo { fn set_state(&mut self, next: State); #[cfg(feature = "compression")] fn set_compression_threshold(&mut self, threshold: Option); #[cfg(feature = "encryption")] fn enable_encryption(&mut self, key: &[u8], iv: &[u8]) -> Result<(), CipherError>; }