pub enum IpScope {
Global,
Local,
}Expand description
Scope of the IP to be received.
Variants§
Global
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.
Local
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§
Source§impl<'de> Deserialize<'de> for IpScope
impl<'de> Deserialize<'de> for IpScope
Source§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
impl Copy for IpScope
impl Eq for IpScope
impl StructuralPartialEq for IpScope
Auto Trait Implementations§
impl Freeze for IpScope
impl RefUnwindSafe for IpScope
impl Send for IpScope
impl Sync for IpScope
impl Unpin for IpScope
impl UnwindSafe for IpScope
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more