Enum getip::IpScope [−][src]
pub enum IpScope {
Global,
Local,
}Expand description
Scope of the IP to be received.
Variants
Address as found by an external service. If used behind NAT, the address outside the NAT is received. If IPv6 private address extension is enabled, the preferred address is usually used.
Address of the NIC.
If IpType is Ipv6, the permanent or secured address is preferred.
If IpType is Ipv4, the first address is used.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for IpScope
impl UnwindSafe for IpScope
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more