Enum sflow::IPAddress
[−]
[src]
pub enum IPAddress { IPv4(Ipv4Addr), IPv6(Ipv6Addr), }
Variants
IPv4(Ipv4Addr)
IPv6(Ipv6Addr)
Trait Implementations
impl Debug for IPAddress
[src]
impl Clone for IPAddress
[src]
fn clone(&self) -> IPAddress
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for IPAddress
[src]
impl Default for IPAddress
[src]
impl Decodeable for IPAddress
[src]
decode_ip_address will read from the stream and decode an IPAddress. Either an IPv4 or an IPv6 address. This also has a side effect of progressing the stream forward to the next data to be decoded.