Enum vapcore_network::client_version::ClientVersion[][src]

pub enum ClientVersion {
    TetsyClient(TetsyClientData),
    TetsyUnknownFormat(String),
    Other(String),
}

Enum describing the version of the software running on a peer.

Variants

TetsyClient(TetsyClientData)

The peer runs software from tetsy and the string format is known

TetsyUnknownFormat(String)

The string ID is recognized as Tetsy but the overall format could not be parsed

Other(String)

Other software vendors than Tetsy

Trait Implementations

impl ClientCapabilities for ClientVersion[src]

impl Clone for ClientVersion[src]

impl Debug for ClientVersion[src]

impl Default for ClientVersion[src]

impl Display for ClientVersion[src]

impl Eq for ClientVersion[src]

impl<T> From<T> for ClientVersion where
    T: AsRef<str>, 
[src]

Parse a version string and return the corresponding ClientVersion. Only Tetsy clients are destructured right now, other strings will just get wrapped in a variant so that the information is not lost. The parsing for tetsy may still fail, in which case return a TetsyUnknownFormat with the original version string. TryFrom would be a better trait to implement.

impl PartialEq<ClientVersion> for ClientVersion[src]

impl Serialize for ClientVersion[src]

impl StructuralEq for ClientVersion[src]

impl StructuralPartialEq for ClientVersion[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,