[−][src]Struct koibumi_core::message::Version
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]
config: &Config,
nonce: NodeNonce,
user_agent: UserAgent
) -> VersionBuilder
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]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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
impl RefUnwindSafe for Version
[src]
impl Send for Version
[src]
impl Sync for Version
[src]
impl Unpin for Version
[src]
impl UnwindSafe for Version
[src]
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> Pack for T where
T: WriteTo + Message,
[src]
T: WriteTo + Message,
impl<T> ReadFromExact for T where
T: ReadFrom,
[src]
T: ReadFrom,
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, 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>,