pub struct IrrSourceConfig { /* private fields */ }Expand description
Configuration for which IRR sources to fetch.
By default, with_irr() uses every catalogued source.
For finer control, use with_irr_sources() to pick specific registries.
§Example
use bgpkit_commons::asinfo::AsInfoBuilder;
use bgpkit_commons::asinfo::IrrSourceConfig;
// Only RIPE + RADB
let config = IrrSourceConfig::only(&["RIPE", "RADB"]).unwrap();
let asinfo = AsInfoBuilder::new()
.with_irr_sources(config)
.build()
.unwrap();Implementations§
Trait Implementations§
Source§impl Clone for IrrSourceConfig
impl Clone for IrrSourceConfig
Source§fn clone(&self) -> IrrSourceConfig
fn clone(&self) -> IrrSourceConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IrrSourceConfig
impl Debug for IrrSourceConfig
Source§impl Default for IrrSourceConfig
impl Default for IrrSourceConfig
Source§fn default() -> IrrSourceConfig
fn default() -> IrrSourceConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IrrSourceConfig
impl RefUnwindSafe for IrrSourceConfig
impl Send for IrrSourceConfig
impl Sync for IrrSourceConfig
impl Unpin for IrrSourceConfig
impl UnsafeUnpin for IrrSourceConfig
impl UnwindSafe for IrrSourceConfig
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