Skip to main content

negotiate_protocol

Function negotiate_protocol 

Source
pub fn negotiate_protocol(
    client: &ProtocolOffer,
    server: &ProtocolOffer,
) -> Result<ProtocolVersion, ProtocolNegotiationError>
Expand description

Selects the lexicographically newest version present in both offers.