[][src]Struct nimiq_messages::GetAddrMessage

pub struct GetAddrMessage {
    pub protocol_mask: ProtocolFlags,
    pub service_mask: ServiceFlags,
    pub max_results: Option<u16>,
}

Fields

protocol_mask: ProtocolFlagsservice_mask: ServiceFlagsmax_results: Option<u16>

Methods

impl GetAddrMessage[src]

pub fn new(
    protocol_mask: ProtocolFlags,
    service_mask: ServiceFlags,
    max_results: Option<u16>
) -> Message
[src]

Trait Implementations

impl Clone for GetAddrMessage[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for GetAddrMessage[src]

impl Serialize for GetAddrMessage[src]

fn serialize_to_vec(&self) -> Vec<u8>[src]

impl Deserialize for GetAddrMessage[src]

Auto Trait Implementations

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Erased for T