Skip to content

Struct envelope::VersionRange

zaun_community_protocol::envelope::VersionRange · Struct

pub struct VersionRange { … }

An inclusive protocol version range (session.hello.versions, UNSUPPORTED_VERSION).

Lowest supported version.

Highest supported version.

pub const fn contains(&self, v: u16) -> bool

Whether v lies in the range.

Clone, Copy, Debug, Deserialize<'de>, Eq, Hash, PartialEq, Serialize, StructuralPartialEq

Full rustdoc page