pub struct SnapshotFiles {
pub collector_id: String,
pub rib_url: String,
pub updates_urls: Vec<String>,
}Expand description
MRT files needed to construct a routing table snapshot for a specific collector.
This struct contains the RIB dump URL and the list of updates files that need to be applied to reconstruct the routing table state at a specific point in time.
§Fields
collector_id- The ID of the BGP collector (e.g., “route-views2”, “rrc00”)rib_url- URL of the RIB dump file to use as the initial routing tableupdates_urls- URLs of the updates MRT files to apply to the initial RIB, ordered chronologically from oldest to newest
§Example
use bgpkit_broker::BgpkitBroker;
let broker = BgpkitBroker::new();
let snapshots = broker.get_snapshot_files(
&["route-views2", "rrc00"],
"2024-01-01T12:00:00Z"
).unwrap();
for snapshot in snapshots {
println!("Collector: {}", snapshot.collector_id);
println!("RIB URL: {}", snapshot.rib_url);
println!("Updates files: {}", snapshot.updates_urls.len());
}Fields§
§collector_id: StringThe collector ID (e.g., “route-views2”, “rrc00”)
rib_url: StringURL of the RIB dump file to build the initial routing table
updates_urls: Vec<String>URLs of the updates MRT files to apply to the initial RIB, in chronological order
Trait Implementations§
Source§impl Clone for SnapshotFiles
impl Clone for SnapshotFiles
Source§fn clone(&self) -> SnapshotFiles
fn clone(&self) -> SnapshotFiles
Returns a duplicate of the value. Read more
1.0.0 · 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 SnapshotFiles
impl Debug for SnapshotFiles
Source§impl<'de> Deserialize<'de> for SnapshotFiles
impl<'de> Deserialize<'de> for SnapshotFiles
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
Source§impl Display for SnapshotFiles
impl Display for SnapshotFiles
Source§impl PartialEq for SnapshotFiles
impl PartialEq for SnapshotFiles
Source§impl Serialize for SnapshotFiles
impl Serialize for SnapshotFiles
impl Eq for SnapshotFiles
impl StructuralPartialEq for SnapshotFiles
Auto Trait Implementations§
impl Freeze for SnapshotFiles
impl RefUnwindSafe for SnapshotFiles
impl Send for SnapshotFiles
impl Sync for SnapshotFiles
impl Unpin for SnapshotFiles
impl UnwindSafe for SnapshotFiles
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.