Enum bip_utracker::announce::SourceIP [] [src]

pub enum SourceIP {
    ImpliedV4,
    ExplicitV4(Ipv4Addr),
    ImpliedV6,
    ExplicitV6(Ipv6Addr),
}

Client specified IP address to send the response to.

Variants

Infer the IPv4 address from the sender address.

Send the response to the given IPv4 address.

Infer the IPv6 address from the sender address.

Send the response to the given IPv6 address.

Methods

impl SourceIP
[src]

Construct the IPv4 SourceIP from the given bytes.

Construct the IPv6 SourceIP from the given bytes.

Write the SourceIP to the given writer.

Whether or not the source is an IPv6 address.

Whether or not the source is an IPv4 address.

Trait Implementations

impl Debug for SourceIP
[src]

Formats the value using the given formatter.

impl PartialEq for SourceIP
[src]

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

This method tests for !=.

impl Eq for SourceIP
[src]

impl Copy for SourceIP
[src]

impl Clone for SourceIP
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more