Enum floresta_wire::address_man::Address
source · pub enum Address {
V4(Ipv4Addr),
V6(Ipv6Addr),
OnionV2([u8; 10]),
OnionV3([u8; 32]),
Cjdns(Ipv6Addr),
I2p([u8; 32]),
}
Variants§
V4(Ipv4Addr)
Regular ipv4 address
V6(Ipv6Addr)
Regular ipv6 address
OnionV2([u8; 10])
Tor v2 address, this may never be used, as OnionV2 is deprecated but we’ll keep it here for completeness sake
OnionV3([u8; 32])
Tor v3 address. This is the preferred way to connect to a tor node
Cjdns(Ipv6Addr)
Cjdns ipv6 address
I2p([u8; 32])
I2p address, a 32 byte node key
Trait Implementations§
source§impl<'de> Deserialize<'de> for Address
impl<'de> Deserialize<'de> for Address
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
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