Struct envelope::VersionRange
zaun_community_protocol::envelope::VersionRange · Struct
pub struct VersionRange { … }An inclusive protocol version range (session.hello.versions, UNSUPPORTED_VERSION).
Fields
Section titled “Fields”min: u16
Section titled “min: u16”Lowest supported version.
max: u16
Section titled “max: u16”Highest supported version.
Methods
Section titled “Methods”contains
Section titled “contains”pub const fn contains(&self, v: u16) -> boolWhether v lies in the range.
Trait implementations
Section titled “Trait implementations”Clone, Copy, Debug, Deserialize<'de>, Eq, Hash, PartialEq, Serialize, StructuralPartialEq