Function serde_bencoded::to_vec[][src]

pub fn to_vec<T: Serialize>(value: &T) -> Result<Vec<u8>>

Convenient function to get encoded value as bytes