pub struct ControllerConfig {
pub addresses: Option<Vec<String>>,
pub connection_mode: Option<ConnectionMode>,
}
Expand description
Valid for bridge interfaces. Specify an external OpenFlow controller.
Fields§
§addresses: Option<Vec<String>>
Set the list of addresses to use for the controller targets. The syntax of these addresses is as defined in ovs-vsctl(8). Example: addresses: [tcp:127.0.0.1:6653, “ssl:[fe80::1234%eth0]:6653”]
connection_mode: Option<ConnectionMode>
Set the connection mode for the controller. Supported options are in-band and out-of-band. The default is in-band.
Trait Implementations§
Source§impl Clone for ControllerConfig
impl Clone for ControllerConfig
Source§fn clone(&self) -> ControllerConfig
fn clone(&self) -> ControllerConfig
Returns a copy 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 ControllerConfig
impl Debug for ControllerConfig
Source§impl Default for ControllerConfig
impl Default for ControllerConfig
Source§fn default() -> ControllerConfig
fn default() -> ControllerConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ControllerConfig
impl<'de> Deserialize<'de> for ControllerConfig
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 PartialEq for ControllerConfig
impl PartialEq for ControllerConfig
Source§impl Serialize for ControllerConfig
impl Serialize for ControllerConfig
impl Eq for ControllerConfig
impl StructuralPartialEq for ControllerConfig
Auto Trait Implementations§
impl Freeze for ControllerConfig
impl RefUnwindSafe for ControllerConfig
impl Send for ControllerConfig
impl Sync for ControllerConfig
impl Unpin for ControllerConfig
impl UnwindSafe for ControllerConfig
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