Enum ppp::v2::Addresses [−][src]
Expand description
The source and destination address information for a given AddressFamily
.
Examples
use ppp::v2::{Addresses, AddressFamily};
use std::net::SocketAddr;
let addresses: Addresses = ("127.0.0.1:80".parse::<SocketAddr>().unwrap(), "192.168.1.1:443".parse::<SocketAddr>().unwrap()).into();
assert_eq!(addresses.address_family(), AddressFamily::IPv4);
Variants
Unspecified
IPv4(IPv4)
Tuple Fields
0: IPv4
IPv6(IPv6)
Tuple Fields
0: IPv6
Unix(Unix)
Tuple Fields
0: Unix
Implementations
The AddressFamily
for this Addresses
.
Trait Implementations
Performs the conversion.
Write this instance to the given Writer
.
The Writer
returns an IO error when an individual byte slice is longer than u16::MAX
.
However, the total length of the buffer may exceed u16::MAX
. Read more
Auto Trait Implementations
impl RefUnwindSafe for Addresses
impl UnwindSafe for Addresses
Blanket Implementations
Mutably borrows from an owned value. Read more