pub enum AddressNetwork {
Loopback,
Local,
Internet,
Unknown,
}Expand description
What kind of network an address is on, as the server’s web approval page judges it too.
Variants§
Loopback
The server’s own machine: 127.0.0.0/8, ::1.
Local
A home, office or VPN network: private IPv4 ranges, link-local,
CGNAT and VPNs’ 100.64.0.0/10, IPv6 unique-local and link-local.
Internet
A public address: a device far from the approver, which is what a sign-in code sent to someone else (device-code phishing) looks like. The approval warns.
Unknown
A kind this build does not know, from a newer server. Show the
address and warn as for AddressNetwork::Internet.
Trait Implementations§
Source§impl Clone for AddressNetwork
impl Clone for AddressNetwork
impl Copy for AddressNetwork
Source§impl Debug for AddressNetwork
impl Debug for AddressNetwork
Source§impl<'de> Deserialize<'de> for AddressNetwork
impl<'de> Deserialize<'de> for AddressNetwork
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 Eq for AddressNetwork
Source§impl Hash for AddressNetwork
impl Hash for AddressNetwork
Source§impl PartialEq for AddressNetwork
impl PartialEq for AddressNetwork
Source§impl Serialize for AddressNetwork
impl Serialize for AddressNetwork
impl StructuralPartialEq for AddressNetwork
Auto Trait Implementations§
impl Forget for AddressNetwork
impl Freeze for AddressNetwork
impl Move for AddressNetwork
impl RefUnwindSafe for AddressNetwork
impl Send for AddressNetwork
impl Sync for AddressNetwork
impl Unpin for AddressNetwork
impl UnsafeUnpin for AddressNetwork
impl UnwindSafe for AddressNetwork
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