Struct nmstate::LldpMgmtAddrs
source · #[non_exhaustive]pub struct LldpMgmtAddrs {
pub ty: LldpNeighborTlvType,
pub management_addresses: Vec<LldpMgmtAddr>,
}
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.ty: LldpNeighborTlvType
§management_addresses: Vec<LldpMgmtAddr>
Implementations§
source§impl LldpMgmtAddrs
impl LldpMgmtAddrs
pub fn new(management_addresses: Vec<LldpMgmtAddr>) -> Self
Trait Implementations§
source§impl Clone for LldpMgmtAddrs
impl Clone for LldpMgmtAddrs
source§fn clone(&self) -> LldpMgmtAddrs
fn clone(&self) -> LldpMgmtAddrs
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 LldpMgmtAddrs
impl Debug for LldpMgmtAddrs
source§impl PartialEq for LldpMgmtAddrs
impl PartialEq for LldpMgmtAddrs
source§impl Serialize for LldpMgmtAddrs
impl Serialize for LldpMgmtAddrs
impl Eq for LldpMgmtAddrs
impl StructuralPartialEq for LldpMgmtAddrs
Auto Trait Implementations§
impl Freeze for LldpMgmtAddrs
impl RefUnwindSafe for LldpMgmtAddrs
impl Send for LldpMgmtAddrs
impl Sync for LldpMgmtAddrs
impl Unpin for LldpMgmtAddrs
impl UnwindSafe for LldpMgmtAddrs
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.