[][src]Struct ipdata::Threat

pub struct Threat { /* fields omitted */ }

Methods

impl Threat[src]

pub fn is_tor(&self) -> bool[src]

Returns true if the IP address s a known Tor exit node or relay.

pub fn is_proxy(&self) -> bool[src]

Returns true if the IP is a known proxy of any type.

pub fn is_anonymous(&self) -> bool[src]

Returns true if is_tor or is_proxy is true

pub fn is_known_attacker(&self) -> bool[src]

Returns true if the IP is a known (reported) source of malicious activity.

pub fn is_known_abuser(&self) -> bool[src]

Returns true if the IP s a known (reported) source of abuse.

pub fn is_threat(&self) -> bool[src]

Returns true if is_known_abuser or is_known_attacker is true.

pub fn is_bogon(&self) -> bool[src]

Returns true if the ip address is a Bogon, i.e., an unassigned, unaddressable IP address.

Trait Implementations

impl Debug for Threat[src]

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

Auto Trait Implementations

impl Send for Threat

impl Sync for Threat

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

impl<T> Erased for T