pub struct RisLiveSourceConfig {Show 14 fields
pub websocket_url: String,
pub client_name: Option<String>,
pub host: Option<String>,
pub message_type: Option<String>,
pub prefixes: Option<Vec<String>>,
pub more_specific: Option<bool>,
pub less_specific: Option<bool>,
pub path: Option<String>,
pub peer: Option<String>,
pub require: Option<String>,
pub include_peer_state: bool,
pub reconnect_delay_secs: u64,
pub clear_state_on_start: bool,
pub start_from: StartFrom,
}Expand description
RIPE RIS Live source configuration.
Fields§
§websocket_url: StringWebSocket endpoint for RIS Live.
client_name: Option<String>Optional client identifier passed as ?client= query parameter.
host: Option<String>Optional route collector filter (e.g. rrc00).
message_type: Option<String>Optional BGP message type filter (e.g. UPDATE).
prefixes: Option<Vec<String>>Optional prefix filter(s).
more_specific: Option<bool>Whether to match more specific prefixes.
less_specific: Option<bool>Whether to match less specific prefixes.
path: Option<String>Optional AS path filter.
peer: Option<String>Optional peer IP filter.
require: Option<String>Optional required field filter (e.g. announcements/withdrawals).
include_peer_state: boolEmit peer node updates from RIS_PEER_STATE messages.
reconnect_delay_secs: u64Delay before reconnect attempts after disconnects.
clear_state_on_start: boolClear persisted graph state at startup.
start_from: StartFromInitial stream behavior.
Implementations§
Source§impl RisLiveSourceConfig
impl RisLiveSourceConfig
Sourcepub fn should_process_timestamp(
&self,
message_timestamp_ms: Option<i64>,
) -> bool
pub fn should_process_timestamp( &self, message_timestamp_ms: Option<i64>, ) -> bool
Returns whether a message with the given timestamp should be processed.
Sourcepub fn reconnect_delay_secs(&self) -> u64
pub fn reconnect_delay_secs(&self) -> u64
Returns a non-zero reconnect delay in seconds.
Trait Implementations§
Source§impl Clone for RisLiveSourceConfig
impl Clone for RisLiveSourceConfig
Source§fn clone(&self) -> RisLiveSourceConfig
fn clone(&self) -> RisLiveSourceConfig
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 RisLiveSourceConfig
impl Debug for RisLiveSourceConfig
Source§impl Default for RisLiveSourceConfig
impl Default for RisLiveSourceConfig
Source§impl<'de> Deserialize<'de> for RisLiveSourceConfig
impl<'de> Deserialize<'de> for RisLiveSourceConfig
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 PartialEq for RisLiveSourceConfig
impl PartialEq for RisLiveSourceConfig
Source§fn eq(&self, other: &RisLiveSourceConfig) -> bool
fn eq(&self, other: &RisLiveSourceConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RisLiveSourceConfig
impl Serialize for RisLiveSourceConfig
impl StructuralPartialEq for RisLiveSourceConfig
Auto Trait Implementations§
impl Freeze for RisLiveSourceConfig
impl RefUnwindSafe for RisLiveSourceConfig
impl Send for RisLiveSourceConfig
impl Sync for RisLiveSourceConfig
impl Unpin for RisLiveSourceConfig
impl UnsafeUnpin for RisLiveSourceConfig
impl UnwindSafe for RisLiveSourceConfig
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