#[non_exhaustive]pub struct BfdStatus {
pub bfd_session_initialization_mode: Option<BfdSessionInitializationMode>,
pub config_update_timestamp_micros: Option<i64>,
pub control_packet_counts: Option<BfdStatusPacketCounts>,
pub control_packet_intervals: Vec<PacketIntervals>,
pub local_diagnostic: Option<LocalDiagnostic>,
pub local_state: Option<LocalState>,
pub negotiated_local_control_tx_interval_ms: Option<u32>,
pub rx_packet: Option<BfdPacket>,
pub tx_packet: Option<BfdPacket>,
pub uptime_ms: Option<i64>,
/* private fields */
}routers only.Expand description
Next free: 15
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.bfd_session_initialization_mode: Option<BfdSessionInitializationMode>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.
config_update_timestamp_micros: Option<i64>Unix timestamp of the most recent config update.
control_packet_counts: Option<BfdStatusPacketCounts>Control packet counts for the current BFD session.
control_packet_intervals: Vec<PacketIntervals>Inter-packet time interval statistics for control packets.
local_diagnostic: Option<LocalDiagnostic>The diagnostic code specifies the local system’s reason for the last change in session state. This allows remote systems to determine the reason that the previous session failed, for example. These diagnostic codes are specified in section 4.1 ofRFC5880
local_state: Option<LocalState>The current BFD session state as seen by the transmitting system. These states are specified in section 4.1 ofRFC5880
negotiated_local_control_tx_interval_ms: Option<u32>Negotiated transmit interval for control packets.
rx_packet: Option<BfdPacket>The most recent Rx control packet for this BFD session.
tx_packet: Option<BfdPacket>The most recent Tx control packet for this BFD session.
uptime_ms: Option<i64>Session uptime in milliseconds. Value will be 0 if session is not up.
Implementations§
Source§impl BfdStatus
impl BfdStatus
pub fn new() -> Self
Sourcepub fn set_bfd_session_initialization_mode<T>(self, v: T) -> Selfwhere
T: Into<BfdSessionInitializationMode>,
pub fn set_bfd_session_initialization_mode<T>(self, v: T) -> Selfwhere
T: Into<BfdSessionInitializationMode>,
Sets the value of bfd_session_initialization_mode.
§Example
use google_cloud_compute_v1::model::bfd_status::BfdSessionInitializationMode;
let x0 = BfdStatus::new().set_bfd_session_initialization_mode(BfdSessionInitializationMode::Disabled);
let x1 = BfdStatus::new().set_bfd_session_initialization_mode(BfdSessionInitializationMode::Passive);Sourcepub fn set_or_clear_bfd_session_initialization_mode<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<BfdSessionInitializationMode>,
pub fn set_or_clear_bfd_session_initialization_mode<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<BfdSessionInitializationMode>,
Sets or clears the value of bfd_session_initialization_mode.
§Example
use google_cloud_compute_v1::model::bfd_status::BfdSessionInitializationMode;
let x0 = BfdStatus::new().set_or_clear_bfd_session_initialization_mode(Some(BfdSessionInitializationMode::Disabled));
let x1 = BfdStatus::new().set_or_clear_bfd_session_initialization_mode(Some(BfdSessionInitializationMode::Passive));
let x_none = BfdStatus::new().set_or_clear_bfd_session_initialization_mode(None::<BfdSessionInitializationMode>);Sourcepub fn set_config_update_timestamp_micros<T>(self, v: T) -> Self
pub fn set_config_update_timestamp_micros<T>(self, v: T) -> Self
Sets the value of config_update_timestamp_micros.
§Example
let x = BfdStatus::new().set_config_update_timestamp_micros(42);Sourcepub fn set_or_clear_config_update_timestamp_micros<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_config_update_timestamp_micros<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of config_update_timestamp_micros.
§Example
let x = BfdStatus::new().set_or_clear_config_update_timestamp_micros(Some(42));
let x = BfdStatus::new().set_or_clear_config_update_timestamp_micros(None::<i32>);Sourcepub fn set_control_packet_counts<T>(self, v: T) -> Selfwhere
T: Into<BfdStatusPacketCounts>,
pub fn set_control_packet_counts<T>(self, v: T) -> Selfwhere
T: Into<BfdStatusPacketCounts>,
Sets the value of control_packet_counts.
§Example
use google_cloud_compute_v1::model::BfdStatusPacketCounts;
let x = BfdStatus::new().set_control_packet_counts(BfdStatusPacketCounts::default()/* use setters */);Sourcepub fn set_or_clear_control_packet_counts<T>(self, v: Option<T>) -> Selfwhere
T: Into<BfdStatusPacketCounts>,
pub fn set_or_clear_control_packet_counts<T>(self, v: Option<T>) -> Selfwhere
T: Into<BfdStatusPacketCounts>,
Sets or clears the value of control_packet_counts.
§Example
use google_cloud_compute_v1::model::BfdStatusPacketCounts;
let x = BfdStatus::new().set_or_clear_control_packet_counts(Some(BfdStatusPacketCounts::default()/* use setters */));
let x = BfdStatus::new().set_or_clear_control_packet_counts(None::<BfdStatusPacketCounts>);Sourcepub fn set_control_packet_intervals<T, V>(self, v: T) -> Self
pub fn set_control_packet_intervals<T, V>(self, v: T) -> Self
Sets the value of control_packet_intervals.
§Example
use google_cloud_compute_v1::model::PacketIntervals;
let x = BfdStatus::new()
.set_control_packet_intervals([
PacketIntervals::default()/* use setters */,
PacketIntervals::default()/* use (different) setters */,
]);Sourcepub fn set_local_diagnostic<T>(self, v: T) -> Selfwhere
T: Into<LocalDiagnostic>,
pub fn set_local_diagnostic<T>(self, v: T) -> Selfwhere
T: Into<LocalDiagnostic>,
Sets the value of local_diagnostic.
§Example
use google_cloud_compute_v1::model::bfd_status::LocalDiagnostic;
let x0 = BfdStatus::new().set_local_diagnostic(LocalDiagnostic::ConcatenatedPathDown);
let x1 = BfdStatus::new().set_local_diagnostic(LocalDiagnostic::ControlDetectionTimeExpired);
let x2 = BfdStatus::new().set_local_diagnostic(LocalDiagnostic::DiagnosticUnspecified);Sourcepub fn set_or_clear_local_diagnostic<T>(self, v: Option<T>) -> Selfwhere
T: Into<LocalDiagnostic>,
pub fn set_or_clear_local_diagnostic<T>(self, v: Option<T>) -> Selfwhere
T: Into<LocalDiagnostic>,
Sets or clears the value of local_diagnostic.
§Example
use google_cloud_compute_v1::model::bfd_status::LocalDiagnostic;
let x0 = BfdStatus::new().set_or_clear_local_diagnostic(Some(LocalDiagnostic::ConcatenatedPathDown));
let x1 = BfdStatus::new().set_or_clear_local_diagnostic(Some(LocalDiagnostic::ControlDetectionTimeExpired));
let x2 = BfdStatus::new().set_or_clear_local_diagnostic(Some(LocalDiagnostic::DiagnosticUnspecified));
let x_none = BfdStatus::new().set_or_clear_local_diagnostic(None::<LocalDiagnostic>);Sourcepub fn set_local_state<T>(self, v: T) -> Selfwhere
T: Into<LocalState>,
pub fn set_local_state<T>(self, v: T) -> Selfwhere
T: Into<LocalState>,
Sets the value of local_state.
§Example
use google_cloud_compute_v1::model::bfd_status::LocalState;
let x0 = BfdStatus::new().set_local_state(LocalState::Down);
let x1 = BfdStatus::new().set_local_state(LocalState::Init);
let x2 = BfdStatus::new().set_local_state(LocalState::StateUnspecified);Sourcepub fn set_or_clear_local_state<T>(self, v: Option<T>) -> Selfwhere
T: Into<LocalState>,
pub fn set_or_clear_local_state<T>(self, v: Option<T>) -> Selfwhere
T: Into<LocalState>,
Sets or clears the value of local_state.
§Example
use google_cloud_compute_v1::model::bfd_status::LocalState;
let x0 = BfdStatus::new().set_or_clear_local_state(Some(LocalState::Down));
let x1 = BfdStatus::new().set_or_clear_local_state(Some(LocalState::Init));
let x2 = BfdStatus::new().set_or_clear_local_state(Some(LocalState::StateUnspecified));
let x_none = BfdStatus::new().set_or_clear_local_state(None::<LocalState>);Sourcepub fn set_negotiated_local_control_tx_interval_ms<T>(self, v: T) -> Self
pub fn set_negotiated_local_control_tx_interval_ms<T>(self, v: T) -> Self
Sets the value of negotiated_local_control_tx_interval_ms.
§Example
let x = BfdStatus::new().set_negotiated_local_control_tx_interval_ms(42_u32);Sourcepub fn set_or_clear_negotiated_local_control_tx_interval_ms<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_negotiated_local_control_tx_interval_ms<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of negotiated_local_control_tx_interval_ms.
§Example
let x = BfdStatus::new().set_or_clear_negotiated_local_control_tx_interval_ms(Some(42_u32));
let x = BfdStatus::new().set_or_clear_negotiated_local_control_tx_interval_ms(None::<u32>);