Expand description
This library provides a thing wrapper around the bgpq3/bgpq4 binary.
See Bgpq3::query_v4 and Bgpq3::query_v6.
§Example
bgpq3 AS-Set
extern crate bgpq3;
pub fn main() {
let networks = bgpq3::Bgpq3::new().query_v6("AS-RAPPET").unwrap();
println!("{:?}", networks);
}bgpq3 ASN
extern crate bgpq3;
pub fn main() {
let networks = bgpq3::Bgpq3::new().query_v6(207968).unwrap();
println!("{:?}", networks);
}bgpq4
ⓘ
extern crate bgpq3;
use bgpq3::{Bgpq3, Version};
pub fn main() {
let bgpq4 = Bgpq3::builder().version(Version::Bgpq4).build();
let networks = bgpq4.query_v6("AS-RAPPET").unwrap();
println!("{:?}", networks);
}§Feature flags
tokiofor async process invocation.
Structs§
- Bgpq3
- A wrapper around the
bgpq3orbgpq4binary. - Bgpq3
Query - A query for bgpq3.
- Bgpq3
Settings - Settings to create a new
Bgpq3wrapper.
Enums§
- Bgpq3
Error - Version
- Selects, if the bgpq3 or bgpq4 binary is used.