pub fn negotiate<'a, I>(
offered: I,
acceptable: &[OcppVersion],
) -> Option<(OcppVersion, &'a str)>where
I: IntoIterator<Item = &'a str>,Expand description
Picks the first version offered by the client (in its preference order) that is also acceptable to the server. Returns the version together with the exact token the client sent, which must be echoed back verbatim.