Enum strict_encoding::net::AddrFormat [−][src]
#[repr(u8)]
#[non_exhaustive]
pub enum AddrFormat {
IpV4,
IpV6,
OnionV2,
OnionV3,
Lightning,
}
Expand description
Format of the host address
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
IpV4
IPv4 addresss
IpV6
IPv6 address
OnionV2
Tor ONION v2 address
OnionV3
Tor ONION v3 address
Lightning
Lightning network node address (Secp256k1 public key)
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Decode with the given std::io::Read
instance; must either
construct an instance or return implementation-specific error type. Read more
Tries to deserialize byte array into the current type using
StrictDecode::strict_decode
Read more
Encode with the given std::io::Write
instance; must return result
with either amount of bytes encoded – or implementation-specific
error type. Read more
Serializes data as a byte array using StrictEncode::strict_encode
function Read more
Auto Trait Implementations
impl RefUnwindSafe for AddrFormat
impl Send for AddrFormat
impl Sync for AddrFormat
impl Unpin for AddrFormat
impl UnwindSafe for AddrFormat
Blanket Implementations
Mutably borrows from an owned value. Read more