Enum AddrV2
pub enum AddrV2 {
Ipv4(Ipv4Addr),
Ipv6(Ipv6Addr),
TorV2([u8; 10]),
TorV3([u8; 32]),
I2p([u8; 32]),
Cjdns(Ipv6Addr),
Unknown(u8, Vec<u8>),
}
Expand description
Supported networks for use in BIP155 addrv2 message
Variants§
Ipv4(Ipv4Addr)
IPV4
Ipv6(Ipv6Addr)
IPV6
TorV2([u8; 10])
TORV2
TorV3([u8; 32])
TORV3
I2p([u8; 32])
I2P
Cjdns(Ipv6Addr)
CJDNS
Unknown(u8, Vec<u8>)
Unknown
Trait Implementations§
impl Eq for AddrV2
impl StructuralPartialEq for AddrV2
Auto Trait Implementations§
impl Freeze for AddrV2
impl RefUnwindSafe for AddrV2
impl Send for AddrV2
impl Sync for AddrV2
impl Unpin for AddrV2
impl UnwindSafe for AddrV2
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more