[−][src]Struct sv::messages::NodeAddr
Network address for a node on the network
Fields
services: u64
Services flags for the node
ip: Ipv6Addr
IPV6 address for the node. IPV4 addresses may be used as IPV4-mapped IPV6 addresses.
port: u16
Port for Bitcoin P2P communication
Methods
impl NodeAddr
[src]
impl NodeAddr
pub const SIZE: usize
[src]
Size of the NodeAddr in bytes
pub fn new(ip: IpAddr, port: u16) -> NodeAddr
[src]
pub fn new(ip: IpAddr, port: u16) -> NodeAddr
Creates a NodeAddr from an IP address and port
pub fn size(&self) -> usize
[src]
pub fn size(&self) -> usize
Returns the size of the address in bytes
Trait Implementations
impl Serializable<NodeAddr> for NodeAddr
[src]
impl Serializable<NodeAddr> for NodeAddr
fn read(reader: &mut dyn Read) -> Result<NodeAddr>
[src]
fn read(reader: &mut dyn Read) -> Result<NodeAddr>
fn write(&self, writer: &mut dyn Write) -> Result<()>
[src]
fn write(&self, writer: &mut dyn Write) -> Result<()>
impl Clone for NodeAddr
[src]
impl Clone for NodeAddr
fn clone(&self) -> NodeAddr
[src]
fn clone(&self) -> NodeAddr
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Eq for NodeAddr
[src]
impl Eq for NodeAddr
impl Default for NodeAddr
[src]
impl Default for NodeAddr
impl PartialEq<NodeAddr> for NodeAddr
[src]
impl PartialEq<NodeAddr> for NodeAddr
impl Debug for NodeAddr
[src]
impl Debug for NodeAddr
impl Hash for NodeAddr
[src]
impl Hash for NodeAddr
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T> Same for T
impl<T> Same for T
type Output = T
Should always be Self