NM.TCQdisc¶
Fields¶
None
Methods¶
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class NM.TCQdisc¶
- classmethod new(kind, parent)¶
- Parameters:
- Raises:
- Returns:
the new
NM.TCQdisc
object, orNone
on error- Return type:
Creates a new
NM.TCQdisc
object.New in version 1.12.
- dup()¶
- Returns:
a copy of self
- Return type:
Creates a copy of self
New in version 1.12.
- equal(other)¶
- Parameters:
other (
NM.TCQdisc
) – theNM.TCQdisc
to compare self to.- Returns:
True
if the objects contain the same values,False
if they do not.- Return type:
Determines if two
NM.TCQdisc
objects contain the same kind, * handle and parent.New in version 1.12.
- get_attribute(name)¶
- Parameters:
name (
str
) – the name of an qdisc attribute- Returns:
the value of the attribute with name name on self, or
None
if self has no such attribute.- Return type:
Gets the value of the attribute with name name on self
New in version 1.18.
- get_attribute_names()¶
- Returns:
a
None
-terminated array of attribute names orNone
if no attributes are set.- Return type:
[
str
]
Gets an array of attribute names defined on self.
New in version 1.18.
- ref()¶
Increases the reference count of the object.
New in version 1.12.
- set_attribute(name, value)¶
- Parameters:
name (
str
) – the name of an qdisc attributevalue (
GLib.Variant
orNone
) – the value
Sets or clears the named attribute on self to the given value.
New in version 1.18.
- set_handle(handle)¶
- Parameters:
handle (
int
) – the queueing discipline handle
Sets the queueing discipline handle.
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.