#[non_exhaustive]pub struct OvsBridgeInterface {
pub base: BaseInterface,
pub bridge: Option<OvsBridgeConfig>,
}Expand description
OpenvSwitch bridge interface. Example yaml output of crate::NetworkState with an OVS bridge:
---
interfaces:
- name: br0
type: ovs-interface
state: up
ipv4:
address:
- ip: 192.0.2.252
prefix-length: 24
- ip: 192.0.2.251
prefix-length: 24
dhcp: false
enabled: true
ipv6:
address:
- ip: 2001:db8:2::1
prefix-length: 64
- ip: 2001:db8:1::1
prefix-length: 64
autoconf: false
dhcp: false
enabled: true
- name: br0
type: ovs-bridge
state: up
bridge:
port:
- name: br0
- name: eth1Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.base: BaseInterface§bridge: Option<OvsBridgeConfig>Implementations§
Trait Implementations§
Source§impl Clone for OvsBridgeInterface
impl Clone for OvsBridgeInterface
Source§fn clone(&self) -> OvsBridgeInterface
fn clone(&self) -> OvsBridgeInterface
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 OvsBridgeInterface
impl Debug for OvsBridgeInterface
Source§impl Default for OvsBridgeInterface
impl Default for OvsBridgeInterface
Source§impl<'de> Deserialize<'de> for OvsBridgeInterface
impl<'de> Deserialize<'de> for OvsBridgeInterface
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 OvsBridgeInterface
impl PartialEq for OvsBridgeInterface
Source§impl Serialize for OvsBridgeInterface
impl Serialize for OvsBridgeInterface
impl Eq for OvsBridgeInterface
impl StructuralPartialEq for OvsBridgeInterface
Auto Trait Implementations§
impl Freeze for OvsBridgeInterface
impl RefUnwindSafe for OvsBridgeInterface
impl Send for OvsBridgeInterface
impl Sync for OvsBridgeInterface
impl Unpin for OvsBridgeInterface
impl UnwindSafe for OvsBridgeInterface
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<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
Compare self to
key and return true if they are equal.