Enum bgp_models::network::NextHopAddress[][src]

pub enum NextHopAddress {
    Ipv4(Ipv4Addr),
    Ipv6(Ipv6Addr),
    Ipv6LinkLocal(Ipv6AddrIpv6Addr),
}
Expand description

enum that represents the type of the next hop address.

NextHopAddress is used when parsing for next hops in [Nlri].

Variants

Ipv4(Ipv4Addr)

Tuple Fields of Ipv4

0: Ipv4Addr
Ipv6(Ipv6Addr)

Tuple Fields of Ipv6

0: Ipv6Addr
Ipv6LinkLocal(Ipv6AddrIpv6Addr)

Tuple Fields of Ipv6LinkLocal

0: Ipv6Addr1: Ipv6Addr

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.