#[non_exhaustive]pub struct LldpInterface {
pub name: String,
pub enabled: Option<bool>,
pub dest_mac_type: Option<String>,
pub power_negotiation: Option<bool>,
pub trap_notification: Option<bool>,
pub tlv_filter: Vec<String>,
pub tlv_select: Vec<String>,
}Expand description
An interface <name> entry of LLDP; the name can be all.
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.name: String§enabled: Option<bool>Some(true) for enable, Some(false) for disable.
dest_mac_type: Option<String>§power_negotiation: Option<bool>Some(false) for power-negotiation disable, Some(true) for enable or a bare statement.
trap_notification: Option<bool>Some(true) for trap-notification enable, Some(false) for disable.
tlv_filter: Vec<String>§tlv_select: Vec<String>Trait Implementations§
Source§impl Clone for LldpInterface
impl Clone for LldpInterface
Source§impl Debug for LldpInterface
impl Debug for LldpInterface
impl Eq for LldpInterface
Source§impl PartialEq for LldpInterface
impl PartialEq for LldpInterface
impl StructuralPartialEq for LldpInterface
Auto Trait Implementations§
impl Forget for LldpInterface
impl Freeze for LldpInterface
impl Move for LldpInterface
impl RefUnwindSafe for LldpInterface
impl Send for LldpInterfacewhere
RawVecInner: Send,
impl Sync for LldpInterfacewhere
RawVecInner: Sync,
impl Unpin for LldpInterface
impl UnsafeUnpin for LldpInterfacewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for LldpInterfacewhere
RawVecInner: UnwindSafe,
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