pub struct LldpNeighbor { /* private fields */ }Expand description
Supported attributes are:
-
#NM_LLDP_ATTR_CHASSIS_ID_TYPE (type: ‘u’)
-
#NM_LLDP_ATTR_CHASSIS_ID (type: ‘s’)
-
#NM_LLDP_ATTR_DESTINATION (type: ‘s’)
-
#NM_LLDP_ATTR_IEEE_802_1_PPVID (type: ‘u’). This attribute only reports the first PPVID and therefore it is deprecated in favor of NM_LLDP_ATTR_IEEE_802_1_PPVIDS which reports all the PPVID.
-
#NM_LLDP_ATTR_IEEE_802_1_PPVID_FLAGS (type: ‘u’). This attribute only reports the first PPVID and therefore it is deprecated in favor of NM_LLDP_ATTR_IEEE_802_1_PPVIDS which reports all the PPVID.
-
#NM_LLDP_ATTR_IEEE_802_1_PPVIDS (type: ‘aa{sv}’)
An array of dictionaries where each element has keys:
- flags (type: ‘u’)
- ppvid (type: ‘u’)
-
#NM_LLDP_ATTR_IEEE_802_1_PVID (type: ‘u’)
-
#NM_LLDP_ATTR_IEEE_802_1_VID (type: ‘u’). This attribute only reports the first VLAN and therefore it is deprecated in favor of NM_LLDP_ATTR_IEEE_802_1_VLANS which reports all the VLANs.
-
#NM_LLDP_ATTR_IEEE_802_1_VLAN_NAME (type: ‘s’). This attribute only reports the first VLAN and therefore it is deprecated in favor of NM_LLDP_ATTR_IEEE_802_1_VLANS which reports all the VLANs.
-
#NM_LLDP_ATTR_IEEE_802_1_VLANS (type: ‘aa{sv}’)
An array of dictionaries where each element has keys:
- name (type: ‘s’)
- vid (type: ‘u’)
-
#NM_LLDP_ATTR_IEEE_802_3_MAC_PHY_CONF (type: ‘a{sv}’)
Dictionary where each element has keys:
- autoneg (type: ‘u’)
- operational-mau-type (type: ‘u’)
- pmd-autoneg-cap (type: ‘u’)
-
#NM_LLDP_ATTR_IEEE_802_3_MAX_FRAME_SIZE (type: ‘u’)
-
#NM_LLDP_ATTR_IEEE_802_3_POWER_VIA_MDI (type: ‘a{sv}’)
Dictionary where each element has keys:
- mdi-power-support (type: ‘u’)
- power-class (type: ‘u’)
- pse-power-pair (type: ‘u’)
-
#NM_LLDP_ATTR_MANAGEMENT_ADDRESSES (type: ‘aa{sv}’)
An array of dictionaries where each element has keys:
- address (type: ‘ay’)
- address-subtype (type: ‘u’)
- interface-number (type: ‘u’)
- interface-number-subtype (type: ‘u’)
- object-id (type: ‘ay’)
-
#NM_LLDP_ATTR_PORT_DESCRIPTION (type: ‘s’)
-
#NM_LLDP_ATTR_PORT_ID_TYPE (type: ‘u’)
-
#NM_LLDP_ATTR_PORT_ID (type: ‘s’)
-
#NM_LLDP_ATTR_RAW (type: ‘ay’)
-
#NM_LLDP_ATTR_SYSTEM_CAPABILITIES (type: ‘u’)
-
#NM_LLDP_ATTR_SYSTEM_DESCRIPTION (type: ‘s’)
-
#NM_LLDP_ATTR_SYSTEM_NAME (type: ‘s’)
GLib type: Shared boxed type with reference counted clone semantics.
Implementations§
Source§impl LldpNeighbor
impl LldpNeighbor
Sourcepub fn as_ptr(&self) -> *mut NMLldpNeighbor
pub fn as_ptr(&self) -> *mut NMLldpNeighbor
Return the inner pointer to the underlying C value.
Sourcepub unsafe fn from_glib_ptr_borrow(ptr: &*mut NMLldpNeighbor) -> &Self
pub unsafe fn from_glib_ptr_borrow(ptr: &*mut NMLldpNeighbor) -> &Self
Borrows the underlying C value.
Source§impl LldpNeighbor
impl LldpNeighbor
Sourcepub fn new() -> LldpNeighbor
Available on crate feature v1_2 only.
pub fn new() -> LldpNeighbor
v1_2 only.Creates a new #NMLldpNeighbor object.
Note that #NMLldpNeighbor has no public API for mutating an instance. Also, libnm will not internally mutate a once exposed object. They are guaranteed to be immutable.
Since 1.32, ref-counting of #NMLldpNeighbor is thread-safe.
This function is not useful, as there is no public API to actually modify the (empty) instance.
§Returns
the new #NMLldpNeighbor object.
Sourcepub fn attr_names(&self) -> Vec<GString>
Available on crate feature v1_2 only.
pub fn attr_names(&self) -> Vec<GString>
v1_2 only.Sourcepub fn attr_string_value(&self, name: &str) -> Option<Option<GString>>
Available on crate feature v1_2 only.
pub fn attr_string_value(&self, name: &str) -> Option<Option<GString>>
v1_2 only.Sourcepub fn attr_uint_value(&self, name: &str) -> Option<u32>
Available on crate feature v1_2 only.
pub fn attr_uint_value(&self, name: &str) -> Option<u32>
v1_2 only.Trait Implementations§
Source§impl Clone for LldpNeighbor
impl Clone for LldpNeighbor
Source§impl Debug for LldpNeighbor
impl Debug for LldpNeighbor
Source§impl Default for LldpNeighbor
Available on crate feature v1_2 only.
impl Default for LldpNeighbor
v1_2 only.Source§impl From<LldpNeighbor> for Value
impl From<LldpNeighbor> for Value
Source§fn from(s: LldpNeighbor) -> Self
fn from(s: LldpNeighbor) -> Self
Source§impl HasParamSpec for LldpNeighbor
impl HasParamSpec for LldpNeighbor
type ParamSpec = ParamSpecBoxed
Source§type SetValue = LldpNeighbor
type SetValue = LldpNeighbor
type BuilderFn = fn(&str) -> ParamSpecBoxedBuilder<'_, LldpNeighbor>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for LldpNeighbor
impl Hash for LldpNeighbor
Source§impl Ord for LldpNeighbor
impl Ord for LldpNeighbor
Source§fn cmp(&self, other: &LldpNeighbor) -> Ordering
fn cmp(&self, other: &LldpNeighbor) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for LldpNeighbor
impl PartialEq for LldpNeighbor
Source§impl PartialOrd for LldpNeighbor
impl PartialOrd for LldpNeighbor
Source§impl StaticType for LldpNeighbor
impl StaticType for LldpNeighbor
Source§fn static_type() -> Type
fn static_type() -> Type
Self.