pub struct BfdStatus {
pub bfd_session_initialization_mode: Option<String>,
pub config_update_timestamp_micros: Option<i64>,
pub control_packet_counts: Option<BfdStatusPacketCounts>,
pub control_packet_intervals: Vec<PacketIntervals>,
pub local_diagnostic: Option<String>,
pub local_state: Option<String>,
pub negotiated_local_control_tx_interval_ms: Option<u32>,
pub rx_packet: Option<BfdPacket>,
pub tx_packet: Option<BfdPacket>,
pub uptime_ms: Option<i64>,
}
Expand description
Next free: 15
Fields§
§bfd_session_initialization_mode: Option<String>
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. Check the BfdSessionInitializationMode enum for the list of possible values.
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<String>
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 of RFC5880 Check the LocalDiagnostic enum for the list of possible values.
local_state: Option<String>
The current BFD session state as seen by the transmitting system. These states are specified in section 4.1 of RFC5880 Check the LocalState enum for the list of possible values.
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
sourcepub fn negotiated_local_control_tx_interval_ms(&self) -> u32
pub fn negotiated_local_control_tx_interval_ms(&self) -> u32
Returns the value of negotiated_local_control_tx_interval_ms
, or the default value if negotiated_local_control_tx_interval_ms
is unset.
sourcepub fn uptime_ms(&self) -> i64
pub fn uptime_ms(&self) -> i64
Returns the value of uptime_ms
, or the default value if uptime_ms
is unset.
sourcepub fn local_state(&self) -> &str
pub fn local_state(&self) -> &str
Returns the value of local_state
, or the default value if local_state
is unset.
sourcepub fn bfd_session_initialization_mode(&self) -> &str
pub fn bfd_session_initialization_mode(&self) -> &str
Returns the value of bfd_session_initialization_mode
, or the default value if bfd_session_initialization_mode
is unset.
sourcepub fn config_update_timestamp_micros(&self) -> i64
pub fn config_update_timestamp_micros(&self) -> i64
Returns the value of config_update_timestamp_micros
, or the default value if config_update_timestamp_micros
is unset.
sourcepub fn local_diagnostic(&self) -> &str
pub fn local_diagnostic(&self) -> &str
Returns the value of local_diagnostic
, or the default value if local_diagnostic
is unset.
Trait Implementations§
source§impl Message for BfdStatus
impl Message for BfdStatus
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for BfdStatus
impl PartialEq for BfdStatus
impl StructuralPartialEq for BfdStatus
Auto Trait Implementations§
impl Freeze for BfdStatus
impl RefUnwindSafe for BfdStatus
impl Send for BfdStatus
impl Sync for BfdStatus
impl Unpin for BfdStatus
impl UnwindSafe for BfdStatus
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request