Enum diem_sdk::types::network_address::Protocol [−][src]
pub enum Protocol {
Ip4(Ipv4Addr),
Ip6(Ipv6Addr),
Dns(DnsName),
Dns4(DnsName),
Dns6(DnsName),
Tcp(u16),
Memory(u16),
NoiseIK(PublicKey),
Handshake(u8),
}
Expand description
A single protocol in the NetworkAddress
protocol stack.
Variants
Ip4(Ipv4Addr)
Tuple Fields of Ip4
0: Ipv4Addr
Ip6(Ipv6Addr)
Tuple Fields of Ip6
0: Ipv6Addr
Dns(DnsName)
Tuple Fields of Dns
0: DnsName
Dns4(DnsName)
Tuple Fields of Dns4
0: DnsName
Dns6(DnsName)
Tuple Fields of Dns6
0: DnsName
Tcp(u16)
Tuple Fields of Tcp
0: u16
Memory(u16)
Tuple Fields of Memory
0: u16
NoiseIK(PublicKey)
Tuple Fields of NoiseIK
0: PublicKey
Handshake(u8)
Tuple Fields of Handshake
0: u8
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Protocol, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Protocol, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Protocol
impl UnwindSafe for Protocol
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Generates a hash used only for tests.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more