[][src]Struct koibumi_core::message::Version

pub struct Version { /* fields omitted */ }

A "version" message that is exchanged between nodes when connected, which informs what type of node it is.

Implementations

impl Version[src]

pub fn builder(
    config: &Config,
    nonce: NodeNonce,
    user_agent: UserAgent
) -> VersionBuilder
[src]

Constructs a builder for building a version message.

pub fn version(&self) -> ProtocolVersion[src]

Returns the protocol version.

pub fn services(&self) -> Services[src]

Returns the flags what features the node serves.

pub fn timestamp(&self) -> Time[src]

Returns the timestamp.

pub fn nonce(&self) -> NodeNonce[src]

Returns the node nonce.

pub fn user_agent(&self) -> &UserAgent[src]

Returns the user agent.

pub fn stream_numbers(&self) -> &StreamNumbers[src]

Returns the list of stream numbers.

Trait Implementations

impl Clone for Version[src]

impl Debug for Version[src]

impl Eq for Version[src]

impl Hash for Version[src]

impl Message for Version[src]

impl PartialEq<Version> for Version[src]

impl ReadFrom for Version[src]

impl StructuralEq for Version[src]

impl StructuralPartialEq for Version[src]

impl WriteTo for Version[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> Pack for T where
    T: WriteTo + Message
[src]

impl<T> ReadFromExact for T where
    T: ReadFrom
[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, 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.