pub fn ser_peer_id<S: Serializer>( peer_id: &PeerId, ser: S, ) -> Result<S::Ok, S::Error>
Serializes a PeerId as a peer::Id.
PeerId
peer::Id
If will return an error if the internal serializer was to fail.