#[repr(i32)]pub enum BfdSessionInitializationMode {
UndefinedBfdSessionInitializationMode = 0,
Active = 314_733_318,
Disabled = 516_696_700,
Passive = 462_813_959,
}
Expand description
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.
Variants§
UndefinedBfdSessionInitializationMode = 0
A value indicating that the enum field is not set.
Active = 314_733_318
Disabled = 516_696_700
Passive = 462_813_959
Implementations§
source§impl BfdSessionInitializationMode
impl BfdSessionInitializationMode
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of BfdSessionInitializationMode
.
sourcepub fn from_i32(value: i32) -> Option<BfdSessionInitializationMode>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<BfdSessionInitializationMode>
Converts an i32
to a BfdSessionInitializationMode
, or None
if value
is not a valid variant.
source§impl BfdSessionInitializationMode
impl BfdSessionInitializationMode
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for BfdSessionInitializationMode
impl Clone for BfdSessionInitializationMode
source§fn clone(&self) -> BfdSessionInitializationMode
fn clone(&self) -> BfdSessionInitializationMode
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BfdSessionInitializationMode
impl Debug for BfdSessionInitializationMode
source§impl Default for BfdSessionInitializationMode
impl Default for BfdSessionInitializationMode
source§fn default() -> BfdSessionInitializationMode
fn default() -> BfdSessionInitializationMode
source§impl From<BfdSessionInitializationMode> for i32
impl From<BfdSessionInitializationMode> for i32
source§fn from(value: BfdSessionInitializationMode) -> i32
fn from(value: BfdSessionInitializationMode) -> i32
source§impl Hash for BfdSessionInitializationMode
impl Hash for BfdSessionInitializationMode
source§impl Ord for BfdSessionInitializationMode
impl Ord for BfdSessionInitializationMode
source§fn cmp(&self, other: &BfdSessionInitializationMode) -> Ordering
fn cmp(&self, other: &BfdSessionInitializationMode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for BfdSessionInitializationMode
impl PartialEq for BfdSessionInitializationMode
source§fn eq(&self, other: &BfdSessionInitializationMode) -> bool
fn eq(&self, other: &BfdSessionInitializationMode) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for BfdSessionInitializationMode
impl PartialOrd for BfdSessionInitializationMode
source§fn partial_cmp(&self, other: &BfdSessionInitializationMode) -> Option<Ordering>
fn partial_cmp(&self, other: &BfdSessionInitializationMode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for BfdSessionInitializationMode
impl TryFrom<i32> for BfdSessionInitializationMode
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(
value: i32,
) -> Result<BfdSessionInitializationMode, UnknownEnumValue>
fn try_from( value: i32, ) -> Result<BfdSessionInitializationMode, UnknownEnumValue>
impl Copy for BfdSessionInitializationMode
impl Eq for BfdSessionInitializationMode
impl StructuralPartialEq for BfdSessionInitializationMode
Auto Trait Implementations§
impl Freeze for BfdSessionInitializationMode
impl RefUnwindSafe for BfdSessionInitializationMode
impl Send for BfdSessionInitializationMode
impl Sync for BfdSessionInitializationMode
impl Unpin for BfdSessionInitializationMode
impl UnwindSafe for BfdSessionInitializationMode
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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