pub(crate) struct NetDefn {
pub(crate) cc: Option<CountryCode>,
pub(crate) asn: Option<NonZeroU32>,
}
Expand description
A country code / ASN definition.
Type lifted from geoip-db-tool
in the C-tor source.
Fields§
§cc: Option<CountryCode>
The country code.
We translate the value “??” into None.
asn: Option<NonZeroU32>
The ASN, if we have one. We translate the value “0” into None.
Implementations§
Trait Implementations§
impl Copy for NetDefn
impl Eq for NetDefn
impl StructuralPartialEq for NetDefn
Auto Trait Implementations§
impl Freeze for NetDefn
impl RefUnwindSafe for NetDefn
impl Send for NetDefn
impl Sync for NetDefn
impl Unpin for NetDefn
impl UnwindSafe for NetDefn
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