pub struct IcmpTarget { /* fields omitted */ }
Expand description

Target to check if a system can be reached via ICMP.

Notes

IcmpTargets use the ping command to perform availability checks. Some administrator blackhole ICMP packets, leading to systems that look unavailable although they can be reached with a TcpTarget.

Implementations

Construct an IcmpTarget.

Arguments
  • fqhn: string containing “fully qualified domain name” e.g. “::1”, “localhost”.
  • resolve_policy: the ResolvePolicy to use for this Target.
Returns

Instance of IcmpTarget.

Notes

For more convenience use the implementations of trait “From” and “FromStr”.

Set a new ResolvePolicy for name resolution.

Get a reference to the Fqhn.

Get a reference to the ResolvePolicy in use.

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Get a Targets identifier. Read more

Check if a Target is currently available. Read more

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.