pub enum ProtocolVersion {
V1 = 1,
}Expand description
Protocol version enumeration
Variantsยง
V1 = 1
Version 1 - Initial Phalanx protocol
Implementationsยง
Sourceยงimpl ProtocolVersion
impl ProtocolVersion
Sourcepub fn is_compatible_with(self, other: Self) -> bool
pub fn is_compatible_with(self, other: Self) -> bool
Check if this version is compatible with another
Trait Implementationsยง
Sourceยงimpl Clone for ProtocolVersion
impl Clone for ProtocolVersion
Sourceยงfn clone(&self) -> ProtocolVersion
fn clone(&self) -> ProtocolVersion
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSourceยงimpl Debug for ProtocolVersion
impl Debug for ProtocolVersion
Sourceยงimpl<'de> Deserialize<'de> for ProtocolVersion
impl<'de> Deserialize<'de> for ProtocolVersion
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 From<ProtocolVersion> for u8
impl From<ProtocolVersion> for u8
Sourceยงfn from(version: ProtocolVersion) -> u8
fn from(version: ProtocolVersion) -> u8
Converts to this type from the input type.
Sourceยงimpl PartialEq for ProtocolVersion
impl PartialEq for ProtocolVersion
Sourceยงimpl Serialize for ProtocolVersion
impl Serialize for ProtocolVersion
Sourceยงimpl TryFrom<u8> for ProtocolVersion
impl TryFrom<u8> for ProtocolVersion
impl Copy for ProtocolVersion
impl Eq for ProtocolVersion
impl StructuralPartialEq for ProtocolVersion
Auto Trait Implementationsยง
impl Freeze for ProtocolVersion
impl RefUnwindSafe for ProtocolVersion
impl Send for ProtocolVersion
impl Sync for ProtocolVersion
impl Unpin for ProtocolVersion
impl UnwindSafe for ProtocolVersion
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