pub enum AddrV2 {
Ipv4(Ipv4Addr),
Ipv6(Ipv6Addr),
TorV2([u8; 10]),
TorV3([u8; 32]),
I2p([u8; 32]),
Cjdns(Ipv6Addr),
Unknown(u8, Vec<u8>),
}
Available on crate feature
std
only.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 StructuralEq for AddrV2
impl StructuralPartialEq for AddrV2
Auto Trait Implementations
impl RefUnwindSafe for AddrV2
impl Send for AddrV2
impl Sync for AddrV2
impl Unpin for AddrV2
impl UnwindSafe for AddrV2
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more