[][src]Enum libra_network_address::Protocol

pub enum Protocol {
    Ip4(Ipv4Addr),
    Ip6(Ipv6Addr),
    Dns(DnsName),
    Dns4(DnsName),
    Dns6(DnsName),
    Tcp(u16),
    Memory(u16),
    NoiseIK(PublicKey),
    Handshake(u8),
}

A single protocol in the NetworkAddress protocol stack.

Variants

Ip4(Ipv4Addr)
Ip6(Ipv6Addr)
Dns(DnsName)
Dns4(DnsName)
Dns6(DnsName)
Tcp(u16)
Memory(u16)
NoiseIK(PublicKey)
Handshake(u8)

Trait Implementations

impl Arbitrary for Protocol[src]

type Parameters = (<Ipv4Addr as Arbitrary>::Parameters, <Ipv6Addr as Arbitrary>::Parameters, <DnsName as Arbitrary>::Parameters, <DnsName as Arbitrary>::Parameters, <DnsName as Arbitrary>::Parameters, <u16 as Arbitrary>::Parameters, <u16 as Arbitrary>::Parameters, <PublicKey as Arbitrary>::Parameters, <u8 as Arbitrary>::Parameters)

The type of parameters that [arbitrary_with] accepts for configuration of the generated [Strategy]. Parameters must implement [Default]. Read more

type Strategy = TupleUnion<((u32, Arc<Map<(<Ipv4Addr as Arbitrary>::Strategy,), fn(_: (Ipv4Addr,)) -> Self>>), (u32, Arc<Map<(<Ipv6Addr as Arbitrary>::Strategy,), fn(_: (Ipv6Addr,)) -> Self>>), (u32, Arc<Map<(<DnsName as Arbitrary>::Strategy,), fn(_: (DnsName,)) -> Self>>), (u32, Arc<Map<(<DnsName as Arbitrary>::Strategy,), fn(_: (DnsName,)) -> Self>>), (u32, Arc<Map<(<DnsName as Arbitrary>::Strategy,), fn(_: (DnsName,)) -> Self>>), (u32, Arc<Map<(<u16 as Arbitrary>::Strategy,), fn(_: (u16,)) -> Self>>), (u32, Arc<Map<(<u16 as Arbitrary>::Strategy,), fn(_: (u16,)) -> Self>>), (u32, Arc<Map<(<PublicKey as Arbitrary>::Strategy,), fn(_: (PublicKey,)) -> Self>>), (u32, Arc<Map<(<u8 as Arbitrary>::Strategy,), fn(_: (u8,)) -> Self>>))>

The type of [Strategy] used to generate values of type Self. Read more

impl Clone for Protocol[src]

impl Debug for Protocol[src]

impl<'de> Deserialize<'de> for Protocol[src]

impl Display for Protocol[src]

impl Eq for Protocol[src]

impl From<IpAddr> for Protocol[src]

impl From<Protocol> for NetworkAddress[src]

impl PartialEq<Protocol> for Protocol[src]

impl Serialize for Protocol[src]

impl StructuralEq for Protocol[src]

impl StructuralPartialEq for Protocol[src]

Auto Trait Implementations

impl RefUnwindSafe for Protocol

impl Send for Protocol

impl Sync for Protocol

impl Unpin for Protocol

impl UnwindSafe for Protocol

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> TestOnlyHash for T where
    T: Serialize + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,