Struct nmstate::OvsBridgeInterface
source · #[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: eth1
Fields (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 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 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.