pub struct Version<const N: u8>;Expand description
Compile-time protocol-version marker that serializes as a bare integer.
Implementations§
Trait Implementations§
impl<const N: u8> Copy for Version<N>
Source§impl<'de, const N: u8> Deserialize<'de> for Version<N>
impl<'de, const N: u8> Deserialize<'de> for Version<N>
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl<const N: u8> Eq for Version<N>
impl<const N: u8> StructuralPartialEq for Version<N>
Auto Trait Implementations§
impl<const N: u8> Freeze for Version<N>
impl<const N: u8> RefUnwindSafe for Version<N>
impl<const N: u8> Send for Version<N>
impl<const N: u8> Sync for Version<N>
impl<const N: u8> Unpin for Version<N>
impl<const N: u8> UnsafeUnpin for Version<N>
impl<const N: u8> UnwindSafe for Version<N>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more