pub enum AcpVersion {
V1_25_0,
Unknown {
major: u16,
minor: u16,
patch: u16,
},
}Expand description
A pinned ACP release, or a future release published after this build was compiled.
Ordered by major then minor then patch, oldest to newest.
The pin is recorded in
crates/protocol-droid-schema/spec/MANIFEST.toml.
Variants§
V1_25_0
The pin recorded in the schema MANIFEST.toml. The exact
release is schema-v1.25.0; bumping the pin is its own
task that re-verifies the wire contract.
Unknown
A future ACP release, identified by its major.minor.patch.
Carries the same numbers a known release would; what changes
between a known release and its Unknown peer is whether
this build’s per-version codec has types for it.
Trait Implementations§
Source§impl Clone for AcpVersion
impl Clone for AcpVersion
impl Copy for AcpVersion
Source§impl Debug for AcpVersion
impl Debug for AcpVersion
Source§impl<'de> Deserialize<'de> for AcpVersion
impl<'de> Deserialize<'de> for AcpVersion
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 AcpVersion
impl Display for AcpVersion
impl Eq for AcpVersion
Source§impl FromStr for AcpVersion
impl FromStr for AcpVersion
Source§impl Hash for AcpVersion
impl Hash for AcpVersion
Source§impl Ord for AcpVersion
impl Ord for AcpVersion
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 AcpVersion
impl PartialEq for AcpVersion
Source§impl PartialOrd for AcpVersion
impl PartialOrd for AcpVersion
Source§impl Serialize for AcpVersion
impl Serialize for AcpVersion
impl StructuralPartialEq for AcpVersion
Auto Trait Implementations§
impl Freeze for AcpVersion
impl RefUnwindSafe for AcpVersion
impl Send for AcpVersion
impl Sync for AcpVersion
impl Unpin for AcpVersion
impl UnsafeUnpin for AcpVersion
impl UnwindSafe for AcpVersion
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