[][src]Function libra_network_address::parse_handshake

pub fn parse_handshake(protos: &[Protocol]) -> Option<(u8, &[Protocol])>

parse the &[Protocol] into the "/ln-handshake/<version>" prefix and unparsed &[Protocol] suffix.