Function negotiate_capabilities
pub fn negotiate_capabilities(
local: &[String],
remote: &[String],
) -> Vec<String>
Expand description
Return the capabilities both peers advertise.
§Arguments
local - Capability flags this endpoint advertises.
remote - Capability flags the peer advertises.
§Returns
The intersection of the two flag sets, deduplicated and sorted ascending
so the result is deterministic regardless of input order.