pub trait UnparseCodec:
Debug
+ Send
+ Sync {
// Required methods
fn try_encode(&self, value: &dyn Unparse) -> Result<Vec<u8>>;
fn try_decode(&self, value: &[u8]) -> Result<Arc<dyn Unparse>>;
}
pub trait UnparseCodec:
Debug
+ Send
+ Sync {
// Required methods
fn try_encode(&self, value: &dyn Unparse) -> Result<Vec<u8>>;
fn try_decode(&self, value: &[u8]) -> Result<Arc<dyn Unparse>>;
}