Skip to main content

tag_addr

Function tag_addr 

Source
pub fn tag_addr<R: IpResolver>(
    resolver: &R,
    addr: IpAddr,
) -> Result<IpTag, IpflagError<R::Error>>
Expand description

Tag an already-parsed IpAddr into an IpTag.

See tag_ip for the high-level behavior.

ยงNotes

  • Private / Special never calls the resolver.
  • Public calls the resolver and returns either Country(code) or Unknown.