pub struct BfdSessionEnable {
pub detection_threshold: u8,
pub local: Option<IpAddr>,
pub mode: BfdMode,
pub remote: IpAddr,
pub required_rx: u64,
pub switch: Name,
}Expand description
Information about a bidirectional forwarding detection (BFD) session.
JSON schema
{
"description": "Information about a bidirectional forwarding detection
(BFD) session.",
"type": "object",
"required": [
"detection_threshold",
"mode",
"remote",
"required_rx",
"switch"
],
"properties": {
"detection_threshold": {
"description": "The negotiated Control packet transmission
interval, multiplied by this variable, will be the Detection Time for
this session (as seen by the remote system)",
"type": "integer",
"format": "uint8",
"minimum": 0.0
},
"local": {
"description": "Address the Oxide switch will listen on for BFD
traffic. If `None` then the unspecified address (0.0.0.0 or ::) is
used.",
"type": [
"string",
"null"
],
"format": "ip"
},
"mode": {
"description": "Select either single-hop (RFC 5881) or multi-hop
(RFC 5883)",
"allOf": [
{
"$ref": "#/components/schemas/BfdMode"
}
]
},
"remote": {
"description": "Address of the remote peer to establish a BFD
session with.",
"type": "string",
"format": "ip"
},
"required_rx": {
"description": "The minimum interval, in microseconds, between
received BFD Control packets that this system requires",
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"switch": {
"description": "The switch to enable this session on. Must be
`switch0` or `switch1`.",
"allOf": [
{
"$ref": "#/components/schemas/Name"
}
]
}
}
}Fields§
§detection_threshold: u8The negotiated Control packet transmission interval, multiplied by this variable, will be the Detection Time for this session (as seen by the remote system)
local: Option<IpAddr>Address the Oxide switch will listen on for BFD traffic. If None
then the unspecified address (0.0.0.0 or ::) is used.
mode: BfdModeSelect either single-hop (RFC 5881) or multi-hop (RFC 5883)
remote: IpAddrAddress of the remote peer to establish a BFD session with.
required_rx: u64The minimum interval, in microseconds, between received BFD Control packets that this system requires
switch: NameThe switch to enable this session on. Must be switch0 or
switch1.
Implementations§
Source§impl BfdSessionEnable
impl BfdSessionEnable
pub fn builder() -> BfdSessionEnable
Trait Implementations§
Source§impl Clone for BfdSessionEnable
impl Clone for BfdSessionEnable
Source§fn clone(&self) -> BfdSessionEnable
fn clone(&self) -> BfdSessionEnable
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BfdSessionEnable
impl Debug for BfdSessionEnable
Source§impl<'de> Deserialize<'de> for BfdSessionEnable
impl<'de> Deserialize<'de> for BfdSessionEnable
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&BfdSessionEnable> for BfdSessionEnable
impl From<&BfdSessionEnable> for BfdSessionEnable
Source§fn from(value: &BfdSessionEnable) -> Self
fn from(value: &BfdSessionEnable) -> Self
Converts to this type from the input type.
Source§impl From<BfdSessionEnable> for BfdSessionEnable
impl From<BfdSessionEnable> for BfdSessionEnable
Source§fn from(value: BfdSessionEnable) -> Self
fn from(value: BfdSessionEnable) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for BfdSessionEnable
impl JsonSchema for BfdSessionEnable
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl Serialize for BfdSessionEnable
impl Serialize for BfdSessionEnable
Source§impl TryFrom<BfdSessionEnable> for BfdSessionEnable
impl TryFrom<BfdSessionEnable> for BfdSessionEnable
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: BfdSessionEnable) -> Result<Self, ConversionError>
fn try_from(value: BfdSessionEnable) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for BfdSessionEnable
impl RefUnwindSafe for BfdSessionEnable
impl Send for BfdSessionEnable
impl Sync for BfdSessionEnable
impl Unpin for BfdSessionEnable
impl UnwindSafe for BfdSessionEnable
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
Mutably borrows from an owned value. Read more