#[non_exhaustive]pub struct RouterBgpPeerBfd {
pub min_receive_interval: Option<u32>,
pub min_transmit_interval: Option<u32>,
pub multiplier: Option<u32>,
pub session_initialization_mode: Option<SessionInitializationMode>,
/* private fields */
}routers only.Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.min_receive_interval: Option<u32>The minimum interval, in milliseconds, between BFD control packets received from the peer router. The actual value is negotiated between the two routers and is equal to the greater of this value and the transmit interval of the other router.
If set, this value must be between 1000 and 30000.
The default is 1000.
min_transmit_interval: Option<u32>The minimum interval, in milliseconds, between BFD control packets transmitted to the peer router. The actual value is negotiated between the two routers and is equal to the greater of this value and the corresponding receive interval of the other router.
If set, this value must be between 1000 and 30000.
The default is 1000.
multiplier: Option<u32>The number of consecutive BFD packets that must be missed before BFD declares that a peer is unavailable.
If set, the value must be a value between 5 and 16.
The default is 5.
session_initialization_mode: Option<SessionInitializationMode>The BFD session initialization mode for this BGP peer.
If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. The default is DISABLED.
Implementations§
Source§impl RouterBgpPeerBfd
impl RouterBgpPeerBfd
pub fn new() -> Self
Sourcepub fn set_min_receive_interval<T>(self, v: T) -> Self
pub fn set_min_receive_interval<T>(self, v: T) -> Self
Sets the value of min_receive_interval.
§Example
let x = RouterBgpPeerBfd::new().set_min_receive_interval(42_u32);Sourcepub fn set_or_clear_min_receive_interval<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_min_receive_interval<T>(self, v: Option<T>) -> Self
Sets or clears the value of min_receive_interval.
§Example
let x = RouterBgpPeerBfd::new().set_or_clear_min_receive_interval(Some(42_u32));
let x = RouterBgpPeerBfd::new().set_or_clear_min_receive_interval(None::<u32>);Sourcepub fn set_min_transmit_interval<T>(self, v: T) -> Self
pub fn set_min_transmit_interval<T>(self, v: T) -> Self
Sets the value of min_transmit_interval.
§Example
let x = RouterBgpPeerBfd::new().set_min_transmit_interval(42_u32);Sourcepub fn set_or_clear_min_transmit_interval<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_min_transmit_interval<T>(self, v: Option<T>) -> Self
Sets or clears the value of min_transmit_interval.
§Example
let x = RouterBgpPeerBfd::new().set_or_clear_min_transmit_interval(Some(42_u32));
let x = RouterBgpPeerBfd::new().set_or_clear_min_transmit_interval(None::<u32>);Sourcepub fn set_multiplier<T>(self, v: T) -> Self
pub fn set_multiplier<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_multiplier<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_multiplier<T>(self, v: Option<T>) -> Self
Sets or clears the value of multiplier.
§Example
let x = RouterBgpPeerBfd::new().set_or_clear_multiplier(Some(42_u32));
let x = RouterBgpPeerBfd::new().set_or_clear_multiplier(None::<u32>);Sourcepub fn set_session_initialization_mode<T>(self, v: T) -> Selfwhere
T: Into<SessionInitializationMode>,
pub fn set_session_initialization_mode<T>(self, v: T) -> Selfwhere
T: Into<SessionInitializationMode>,
Sets the value of session_initialization_mode.
§Example
use google_cloud_compute_v1::model::router_bgp_peer_bfd::SessionInitializationMode;
let x0 = RouterBgpPeerBfd::new().set_session_initialization_mode(SessionInitializationMode::Disabled);
let x1 = RouterBgpPeerBfd::new().set_session_initialization_mode(SessionInitializationMode::Passive);Sourcepub fn set_or_clear_session_initialization_mode<T>(self, v: Option<T>) -> Selfwhere
T: Into<SessionInitializationMode>,
pub fn set_or_clear_session_initialization_mode<T>(self, v: Option<T>) -> Selfwhere
T: Into<SessionInitializationMode>,
Sets or clears the value of session_initialization_mode.
§Example
use google_cloud_compute_v1::model::router_bgp_peer_bfd::SessionInitializationMode;
let x0 = RouterBgpPeerBfd::new().set_or_clear_session_initialization_mode(Some(SessionInitializationMode::Disabled));
let x1 = RouterBgpPeerBfd::new().set_or_clear_session_initialization_mode(Some(SessionInitializationMode::Passive));
let x_none = RouterBgpPeerBfd::new().set_or_clear_session_initialization_mode(None::<SessionInitializationMode>);Trait Implementations§
Source§impl Clone for RouterBgpPeerBfd
impl Clone for RouterBgpPeerBfd
Source§fn clone(&self) -> RouterBgpPeerBfd
fn clone(&self) -> RouterBgpPeerBfd
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more