serialize

Function serialize 

Source
pub fn serialize<S>(bytes: &Vec<u8>, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,
Expand description

Serialize a Vec<u8> as a base64 string

This is compatible with rosbridge’s protocol which expects uint8[] as base64.