[][src]Struct koibumi_core::message::NetAddr

pub struct NetAddr { /* fields omitted */ }

Represents a network address and other infomation of the node, which is shared among the Bitmessage network.

Implementations

impl NetAddr[src]

pub fn new(
    time: Time,
    stream_number: StreamNumber,
    services: Services,
    socket_addr: SocketAddr
) -> Self
[src]

Constructs a network address from the specified parameters.

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

Returns the time that the node was last seen.

pub fn stream_number(&self) -> StreamNumber[src]

Returns the stream number for the node.

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

Returns the flags what features the node serves.

pub fn socket_addr(&self) -> &SocketAddr[src]

Returns the socket address of the node.

Trait Implementations

impl Clone for NetAddr[src]

impl Debug for NetAddr[src]

impl Eq for NetAddr[src]

impl Hash for NetAddr[src]

impl PartialEq<NetAddr> for NetAddr[src]

impl ReadFrom for NetAddr[src]

impl StructuralEq for NetAddr[src]

impl StructuralPartialEq for NetAddr[src]

impl WriteTo for NetAddr[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> 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.