"` prefix and unparsed `&[Protocol]` suffix.">parse_handshake in diem_types::network_address - Rust

Function diem_types::network_address::parse_handshake[][src]

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

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