Enum vapcore_network::client_version::ClientVersion [−][src]
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]
fn can_handle_large_requests(&self) -> bool
[src]
fn accepts_service_transaction(&self) -> bool
[src]
impl Clone for ClientVersion
[src]
fn clone(&self) -> ClientVersion
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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]
T: AsRef<str>,
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]
fn eq(&self, other: &ClientVersion) -> bool
[src]
fn ne(&self, other: &ClientVersion) -> bool
[src]
impl Serialize for ClientVersion
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for ClientVersion
[src]
impl StructuralPartialEq for ClientVersion
[src]
Auto Trait Implementations
impl RefUnwindSafe for ClientVersion
impl Send for ClientVersion
impl Sync for ClientVersion
impl Unpin for ClientVersion
impl UnwindSafe for ClientVersion
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,