Skip to main content

accepts

Function accepts 

Source
pub fn accepts(peer: (u16, u16)) -> Result<(), VersionMismatch>
Expand description

Checks the peer’s version from the handshake: the same major is accepted whatever the minor.