pub struct AcpProtocolVersion(pub u16);Expand description
The wire-level protocol version. The current pin is
V1, which is what every schema-v1.x.y release
advertises. A future breaking change moves the pin to
V2 and the build knows.
Tuple Fields§
§0: u16The wire-level integer. 0 is reserved (the
schema’s minimum is 0, but no published release
has ever used 0; the AcpProtocolVersion::CURRENT
constant is the only well-known value).
Implementations§
Source§impl AcpProtocolVersion
impl AcpProtocolVersion
Sourcepub const CURRENT: Self
pub const CURRENT: Self
The current protocol version. 1 is the wire value
every schema-v1.x.y release advertises. The
release tag in AcpVersion is a different
number (the schema’s release tag is a Major.Minor.Patch
tuple, the wire value is the protocol major).
Trait Implementations§
Source§impl Clone for AcpProtocolVersion
impl Clone for AcpProtocolVersion
impl Copy for AcpProtocolVersion
Source§impl Debug for AcpProtocolVersion
impl Debug for AcpProtocolVersion
Source§impl Default for AcpProtocolVersion
impl Default for AcpProtocolVersion
Source§impl<'de> Deserialize<'de> for AcpProtocolVersion
impl<'de> Deserialize<'de> for AcpProtocolVersion
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for AcpProtocolVersion
impl Display for AcpProtocolVersion
impl Eq for AcpProtocolVersion
Source§impl FromStr for AcpProtocolVersion
impl FromStr for AcpProtocolVersion
Source§impl Hash for AcpProtocolVersion
impl Hash for AcpProtocolVersion
Source§impl Ord for AcpProtocolVersion
impl Ord for AcpProtocolVersion
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for AcpProtocolVersion
impl PartialEq for AcpProtocolVersion
Source§impl PartialOrd for AcpProtocolVersion
impl PartialOrd for AcpProtocolVersion
Source§impl Serialize for AcpProtocolVersion
impl Serialize for AcpProtocolVersion
impl StructuralPartialEq for AcpProtocolVersion
Auto Trait Implementations§
impl Freeze for AcpProtocolVersion
impl RefUnwindSafe for AcpProtocolVersion
impl Send for AcpProtocolVersion
impl Sync for AcpProtocolVersion
impl Unpin for AcpProtocolVersion
impl UnsafeUnpin for AcpProtocolVersion
impl UnwindSafe for AcpProtocolVersion
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more