librqbit-dht 5.3.1

DHT implementation, used in rqbit torrent client.
Documentation
1
2
3
4
5
6
7
8
9
use librqbit_core::hash_id::Id20;
use serde::Serializer;

pub fn serialize_id20<S>(id: &Id20, ser: S) -> Result<S::Ok, S::Error>
where
    S: Serializer,
{
    ser.serialize_str(&id.as_string())
}