NM.TCAction

Fields

None

Methods

class

new (kind)

dup ()

equal (other)

get_attribute (name)

get_attribute_names ()

get_kind ()

ref ()

set_attribute (name, value)

unref ()

Details

class NM.TCAction
classmethod new(kind)
Parameters:

kind (str) – name of the queueing discipline

Raises:

GLib.Error

Returns:

the new NM.TCAction object, or None on error

Return type:

NM.TCAction

Creates a new NM.TCAction object.

New in version 1.12.

dup()
Returns:

a copy of self

Return type:

NM.TCAction

Creates a copy of self

New in version 1.12.

equal(other)
Parameters:

other (NM.TCAction) – the NM.TCAction to compare self to.

Returns:

True if the objects contain the same values, False if they do not.

Return type:

bool

Determines if two NM.TCAction objects contain the same kind, family, handle, parent and info.

New in version 1.12.

get_attribute(name)
Parameters:

name (str) – the name of an action attribute

Returns:

the value of the attribute with name name on self, or None if self has no such attribute.

Return type:

GLib.Variant

Gets the value of the attribute with name name on self

New in version 1.12.

get_attribute_names()
Returns:

a None-terminated array of attribute names,

Return type:

[str]

Gets an array of attribute names defined on self.

New in version 1.12.

get_kind()
Return type:

str

New in version 1.12.

ref()

Increases the reference count of the object.

New in version 1.12.

set_attribute(name, value)
Parameters:

Sets or clears the named attribute on self to the given value.

New in version 1.12.

unref()

Decreases the reference count of the object. If the reference count reaches zero, the object will be destroyed.

New in version 1.12.