Struct nmstate::MacSecConfig
source · #[non_exhaustive]pub struct MacSecConfig {
pub encrypt: bool,
pub base_iface: String,
pub mka_cak: Option<String>,
pub mka_ckn: Option<String>,
pub port: u32,
pub validation: MacSecValidate,
pub send_sci: bool,
pub offload: Option<MacSecOffload>,
}
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.encrypt: bool
Wether the transmitted traffic must be encrypted.
base_iface: String
The parent interface used by the MACsec interface.
mka_cak: Option<String>
The pre-shared CAK (Connectivity Association Key) for MACsec Key Agreement. Must be a string of 32 hexadecimal characters.
mka_ckn: Option<String>
The pre-shared CKN (Connectivity-association Key Name) for MACsec Key Agreement. Must be a string of hexadecimal characters with a even length between 2 and 64.
port: u32
The port component of the SCI (Secure Channel Identifier), between 1 and 65534.
validation: MacSecValidate
Specifies the validation mode for incoming frames.
send_sci: bool
Specifies whether the SCI (Secure Channel Identifier) is included in every packet.
offload: Option<MacSecOffload>
Implementations§
source§impl MacSecConfig
impl MacSecConfig
Trait Implementations§
source§impl Clone for MacSecConfig
impl Clone for MacSecConfig
source§fn clone(&self) -> MacSecConfig
fn clone(&self) -> MacSecConfig
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 MacSecConfig
impl Debug for MacSecConfig
source§impl Default for MacSecConfig
impl Default for MacSecConfig
source§fn default() -> MacSecConfig
fn default() -> MacSecConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MacSecConfig
impl<'de> Deserialize<'de> for MacSecConfig
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 MacSecConfig
impl PartialEq for MacSecConfig
source§fn eq(&self, other: &MacSecConfig) -> bool
fn eq(&self, other: &MacSecConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MacSecConfig
impl Serialize for MacSecConfig
impl Eq for MacSecConfig
impl StructuralPartialEq for MacSecConfig
Auto Trait Implementations§
impl Freeze for MacSecConfig
impl RefUnwindSafe for MacSecConfig
impl Send for MacSecConfig
impl Sync for MacSecConfig
impl Unpin for MacSecConfig
impl UnwindSafe for MacSecConfig
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<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.source§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.