[−][src]Struct koibumi_core::message::NetAddr
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]
time: Time,
stream_number: StreamNumber,
services: Services,
socket_addr: SocketAddr
) -> Self
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]
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 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
impl RefUnwindSafe for NetAddr
[src]
impl Send for NetAddr
[src]
impl Sync for NetAddr
[src]
impl Unpin for NetAddr
[src]
impl UnwindSafe for NetAddr
[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> 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>,