LldpNeighbor

Struct LldpNeighbor 

Source
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

Source

pub fn as_ptr(&self) -> *mut NMLldpNeighbor

Return the inner pointer to the underlying C value.

Source

pub unsafe fn from_glib_ptr_borrow(ptr: &*mut NMLldpNeighbor) -> &Self

Borrows the underlying C value.

Source§

impl LldpNeighbor

Source

pub fn new() -> LldpNeighbor

Available on crate feature 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.

Source

pub fn attr_names(&self) -> Vec<GString>

Available on crate feature v1_2 only.

Gets an array of attribute names available for @self.

§Returns

a None-terminated array of attribute names.

Source

pub fn attr_string_value(&self, name: &str) -> Option<Option<GString>>

Available on crate feature v1_2 only.

Gets the string value of attribute with name @name on @self

§name

the attribute name

§Returns

true if a string attribute with name @name was found, false otherwise

§out_value

on return, the attribute value

Source

pub fn attr_uint_value(&self, name: &str) -> Option<u32>

Available on crate feature v1_2 only.

Gets the uint32 value of attribute with name @name on @self

§name

the attribute name

§Returns

true if a uint32 attribute with name @name was found, false otherwise

§out_value

on return, the attribute value

Trait Implementations§

Source§

impl Clone for LldpNeighbor

Source§

fn clone(&self) -> Self

Makes a clone of this shared reference.

This increments the strong reference count of the reference. Dropping the reference will decrement it again.

1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for LldpNeighbor

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for LldpNeighbor

Available on crate feature v1_2 only.
Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl From<LldpNeighbor> for Value

Source§

fn from(s: LldpNeighbor) -> Self

Converts to this type from the input type.
Source§

impl HasParamSpec for LldpNeighbor

Source§

type ParamSpec = ParamSpecBoxed

Source§

type SetValue = LldpNeighbor

Preferred value to be used as setter for the associated ParamSpec.
Source§

type BuilderFn = fn(&str) -> ParamSpecBoxedBuilder<'_, LldpNeighbor>

Source§

fn param_spec_builder() -> Self::BuilderFn

Source§

impl Hash for LldpNeighbor

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for LldpNeighbor

Source§

fn cmp(&self, other: &LldpNeighbor) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for LldpNeighbor

Source§

fn eq(&self, other: &LldpNeighbor) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for LldpNeighbor

Source§

fn partial_cmp(&self, other: &LldpNeighbor) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl StaticType for LldpNeighbor

Source§

fn static_type() -> Type

Returns the type identifier of Self.
Source§

impl Eq for LldpNeighbor

Source§

impl StructuralPartialEq for LldpNeighbor

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for T

Source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for T

Source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for T

Source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for T

Source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for T

Source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for T

Source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for T

Source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for T

Source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for T

Source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for T

Source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for T

Source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for T

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoClosureReturnValue for T
where T: Into<Value>,

Source§

impl<T> Property for T
where T: HasParamSpec,

Source§

type Value = T

Source§

impl<T> PropertyGet for T
where T: HasParamSpec,

Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> TransparentType for T

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<'a, T, C, E> FromValueOptional<'a> for T
where T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static,