Skip to main content

encode

Function encode 

Source
pub fn encode<T: Serialize>(
    msg_type: MessageType,
    msg: &T,
) -> Result<Vec<u8>, SyncError>