use bytes::{Bytes, BytesMut}; pub trait AeadPacker { fn encrypt(&mut self, data: &mut BytesMut) -> Result; fn decrypt(&mut self, data: &mut BytesMut) -> Result; }