#[non_exhaustive]pub struct BfdPacket {Show 16 fields
pub authentication_present: Option<bool>,
pub control_plane_independent: Option<bool>,
pub demand: Option<bool>,
pub diagnostic: Option<Diagnostic>,
pub final: Option<bool>,
pub length: Option<u32>,
pub min_echo_rx_interval_ms: Option<u32>,
pub min_rx_interval_ms: Option<u32>,
pub min_tx_interval_ms: Option<u32>,
pub multiplier: Option<u32>,
pub multipoint: Option<bool>,
pub my_discriminator: Option<u32>,
pub poll: Option<bool>,
pub state: Option<State>,
pub version: Option<u32>,
pub your_discriminator: Option<u32>,
/* 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.authentication_present: Option<bool>The Authentication Present bit of the BFD packet. This is specified in section 4.1 ofRFC5880
control_plane_independent: Option<bool>The Control Plane Independent bit of the BFD packet. This is specified in section 4.1 ofRFC5880
demand: Option<bool>The demand bit of the BFD packet. This is specified in section 4.1 ofRFC5880
diagnostic: Option<Diagnostic>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
final: Option<bool>The Final bit of the BFD packet. This is specified in section 4.1 ofRFC5880
length: Option<u32>The length of the BFD Control packet in bytes. This is specified in section 4.1 ofRFC5880
min_echo_rx_interval_ms: Option<u32>The Required Min Echo RX Interval value in the BFD packet. This is specified in section 4.1 ofRFC5880
min_rx_interval_ms: Option<u32>The Required Min RX Interval value in the BFD packet. This is specified in section 4.1 ofRFC5880
min_tx_interval_ms: Option<u32>The Desired Min TX Interval value in the BFD packet. This is specified in section 4.1 ofRFC5880
multiplier: Option<u32>The detection time multiplier of the BFD packet. This is specified in section 4.1 ofRFC5880
multipoint: Option<bool>The multipoint bit of the BFD packet. This is specified in section 4.1 ofRFC5880
my_discriminator: Option<u32>The My Discriminator value in the BFD packet. This is specified in section 4.1 ofRFC5880
poll: Option<bool>The Poll bit of the BFD packet. This is specified in section 4.1 ofRFC5880
state: Option<State>The current BFD session state as seen by the transmitting system. These states are specified in section 4.1 ofRFC5880
version: Option<u32>The version number of the BFD protocol, as specified in section 4.1 ofRFC5880.
your_discriminator: Option<u32>The Your Discriminator value in the BFD packet. This is specified in section 4.1 ofRFC5880
Implementations§
Source§impl BfdPacket
impl BfdPacket
pub fn new() -> Self
Sourcepub fn set_authentication_present<T>(self, v: T) -> Self
pub fn set_authentication_present<T>(self, v: T) -> Self
Sets the value of authentication_present.
§Example
let x = BfdPacket::new().set_authentication_present(true);Sourcepub fn set_or_clear_authentication_present<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_authentication_present<T>(self, v: Option<T>) -> Self
Sets or clears the value of authentication_present.
§Example
let x = BfdPacket::new().set_or_clear_authentication_present(Some(false));
let x = BfdPacket::new().set_or_clear_authentication_present(None::<bool>);Sourcepub fn set_control_plane_independent<T>(self, v: T) -> Self
pub fn set_control_plane_independent<T>(self, v: T) -> Self
Sets the value of control_plane_independent.
§Example
let x = BfdPacket::new().set_control_plane_independent(true);Sourcepub fn set_or_clear_control_plane_independent<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_control_plane_independent<T>(self, v: Option<T>) -> Self
Sets or clears the value of control_plane_independent.
§Example
let x = BfdPacket::new().set_or_clear_control_plane_independent(Some(false));
let x = BfdPacket::new().set_or_clear_control_plane_independent(None::<bool>);Sourcepub fn set_demand<T>(self, v: T) -> Self
pub fn set_demand<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_demand<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_demand<T>(self, v: Option<T>) -> Self
Sourcepub fn set_diagnostic<T>(self, v: T) -> Selfwhere
T: Into<Diagnostic>,
pub fn set_diagnostic<T>(self, v: T) -> Selfwhere
T: Into<Diagnostic>,
Sets the value of diagnostic.
§Example
use google_cloud_compute_v1::model::bfd_packet::Diagnostic;
let x0 = BfdPacket::new().set_diagnostic(Diagnostic::ConcatenatedPathDown);
let x1 = BfdPacket::new().set_diagnostic(Diagnostic::ControlDetectionTimeExpired);
let x2 = BfdPacket::new().set_diagnostic(Diagnostic::Unspecified);Sourcepub fn set_or_clear_diagnostic<T>(self, v: Option<T>) -> Selfwhere
T: Into<Diagnostic>,
pub fn set_or_clear_diagnostic<T>(self, v: Option<T>) -> Selfwhere
T: Into<Diagnostic>,
Sets or clears the value of diagnostic.
§Example
use google_cloud_compute_v1::model::bfd_packet::Diagnostic;
let x0 = BfdPacket::new().set_or_clear_diagnostic(Some(Diagnostic::ConcatenatedPathDown));
let x1 = BfdPacket::new().set_or_clear_diagnostic(Some(Diagnostic::ControlDetectionTimeExpired));
let x2 = BfdPacket::new().set_or_clear_diagnostic(Some(Diagnostic::Unspecified));
let x_none = BfdPacket::new().set_or_clear_diagnostic(None::<Diagnostic>);Sourcepub fn set_or_clear_final<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_final<T>(self, v: Option<T>) -> Self
Sourcepub fn set_length<T>(self, v: T) -> Self
pub fn set_length<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_length<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_length<T>(self, v: Option<T>) -> Self
Sourcepub fn set_min_echo_rx_interval_ms<T>(self, v: T) -> Self
pub fn set_min_echo_rx_interval_ms<T>(self, v: T) -> Self
Sets the value of min_echo_rx_interval_ms.
§Example
let x = BfdPacket::new().set_min_echo_rx_interval_ms(42_u32);Sourcepub fn set_or_clear_min_echo_rx_interval_ms<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_min_echo_rx_interval_ms<T>(self, v: Option<T>) -> Self
Sets or clears the value of min_echo_rx_interval_ms.
§Example
let x = BfdPacket::new().set_or_clear_min_echo_rx_interval_ms(Some(42_u32));
let x = BfdPacket::new().set_or_clear_min_echo_rx_interval_ms(None::<u32>);Sourcepub fn set_min_rx_interval_ms<T>(self, v: T) -> Self
pub fn set_min_rx_interval_ms<T>(self, v: T) -> Self
Sets the value of min_rx_interval_ms.
§Example
let x = BfdPacket::new().set_min_rx_interval_ms(42_u32);Sourcepub fn set_or_clear_min_rx_interval_ms<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_min_rx_interval_ms<T>(self, v: Option<T>) -> Self
Sets or clears the value of min_rx_interval_ms.
§Example
let x = BfdPacket::new().set_or_clear_min_rx_interval_ms(Some(42_u32));
let x = BfdPacket::new().set_or_clear_min_rx_interval_ms(None::<u32>);Sourcepub fn set_min_tx_interval_ms<T>(self, v: T) -> Self
pub fn set_min_tx_interval_ms<T>(self, v: T) -> Self
Sets the value of min_tx_interval_ms.
§Example
let x = BfdPacket::new().set_min_tx_interval_ms(42_u32);Sourcepub fn set_or_clear_min_tx_interval_ms<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_min_tx_interval_ms<T>(self, v: Option<T>) -> Self
Sets or clears the value of min_tx_interval_ms.
§Example
let x = BfdPacket::new().set_or_clear_min_tx_interval_ms(Some(42_u32));
let x = BfdPacket::new().set_or_clear_min_tx_interval_ms(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 = BfdPacket::new().set_or_clear_multiplier(Some(42_u32));
let x = BfdPacket::new().set_or_clear_multiplier(None::<u32>);Sourcepub fn set_multipoint<T>(self, v: T) -> Self
pub fn set_multipoint<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_multipoint<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_multipoint<T>(self, v: Option<T>) -> Self
Sets or clears the value of multipoint.
§Example
let x = BfdPacket::new().set_or_clear_multipoint(Some(false));
let x = BfdPacket::new().set_or_clear_multipoint(None::<bool>);Sourcepub fn set_my_discriminator<T>(self, v: T) -> Self
pub fn set_my_discriminator<T>(self, v: T) -> Self
Sets the value of my_discriminator.
§Example
let x = BfdPacket::new().set_my_discriminator(42_u32);Sourcepub fn set_or_clear_my_discriminator<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_my_discriminator<T>(self, v: Option<T>) -> Self
Sets or clears the value of my_discriminator.
§Example
let x = BfdPacket::new().set_or_clear_my_discriminator(Some(42_u32));
let x = BfdPacket::new().set_or_clear_my_discriminator(None::<u32>);Sourcepub fn set_or_clear_poll<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_poll<T>(self, v: Option<T>) -> Self
Sourcepub fn set_or_clear_state<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_state<T>(self, v: Option<T>) -> Self
Sets or clears the value of state.
§Example
use google_cloud_compute_v1::model::bfd_packet::State;
let x0 = BfdPacket::new().set_or_clear_state(Some(State::Down));
let x1 = BfdPacket::new().set_or_clear_state(Some(State::Init));
let x2 = BfdPacket::new().set_or_clear_state(Some(State::Unspecified));
let x_none = BfdPacket::new().set_or_clear_state(None::<State>);Sourcepub fn set_version<T>(self, v: T) -> Self
pub fn set_version<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_version<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_version<T>(self, v: Option<T>) -> Self
Sourcepub fn set_your_discriminator<T>(self, v: T) -> Self
pub fn set_your_discriminator<T>(self, v: T) -> Self
Sets the value of your_discriminator.
§Example
let x = BfdPacket::new().set_your_discriminator(42_u32);Sourcepub fn set_or_clear_your_discriminator<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_your_discriminator<T>(self, v: Option<T>) -> Self
Sets or clears the value of your_discriminator.
§Example
let x = BfdPacket::new().set_or_clear_your_discriminator(Some(42_u32));
let x = BfdPacket::new().set_or_clear_your_discriminator(None::<u32>);