servant-codec 0.1.0

servant-code是servant的网络层编码库,基于futures_codec库。
Documentation
1
2
3
4
5
6
// -- type_of.rs --

#[allow(unused)]
pub fn type_of<T>(_: &T) -> String {
    format!("{}", std::any::type_name::<T>())
}