Struct bgpd_rs::config::ServerConfig [−][src]
pub struct ServerConfig {
pub router_id: IpAddr,
pub default_as: u32,
pub bgp_socket: SocketAddr,
pub api_socket: SocketAddr,
pub poll_interval: u16,
pub peers: Vec<Arc<PeerConfig>>,
}
Expand description
Global BGP daemon options.
router_id
, default_as
, and poll_interval
can be overridden at the peer level
Fields
router_id: IpAddr
default_as: u32
bgp_socket: SocketAddr
api_socket: SocketAddr
poll_interval: u16
peers: Vec<Arc<PeerConfig>>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnwindSafe for ServerConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more