gi-nm-1.0.1: NM bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.NM.Objects.SettingTCConfig

Description

Linux Traffic Control Settings

Since: 1.12

Synopsis

Exported types

class (GObject o, IsDescendantOf SettingTCConfig o) => IsSettingTCConfig o Source #

Type class for types which can be safely cast to SettingTCConfig, for instance with toSettingTCConfig.

Instances

Instances details
(GObject o, IsDescendantOf SettingTCConfig o) => IsSettingTCConfig o Source # 
Instance details

Defined in GI.NM.Objects.SettingTCConfig

toSettingTCConfig :: (MonadIO m, IsSettingTCConfig o) => o -> m SettingTCConfig Source #

Cast to SettingTCConfig, for types for which this is known to be safe. For general casts, use castTo.

Methods

addQdisc

settingTCConfigAddQdisc Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingTCConfig a) 
=> a

setting: the SettingTCConfig

-> TCQdisc

qdisc: the qdisc to add

-> m Bool

Returns: True if the qdisc was added; False if the qdisc was already known.

Appends a new qdisc and associated information to the setting. The given qdisc is duplicated internally and is not changed by this function. If an identical qdisc (considering attributes as well) already exists, the qdisc is not added and the function returns False.

Since: 1.12

addTfilter

settingTCConfigAddTfilter Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingTCConfig a) 
=> a

setting: the SettingTCConfig

-> TCTfilter

tfilter: the tfilter to add

-> m Bool

Returns: True if the tfilter was added; False if the tfilter was already known.

Appends a new tfilter and associated information to the setting. The given tfilter is duplicated internally and is not changed by this function. If an identical tfilter (considering attributes as well) already exists, the tfilter is not added and the function returns False.

Since: 1.12

clearQdiscs

settingTCConfigClearQdiscs Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingTCConfig a) 
=> a

setting: the SettingTCConfig

-> m () 

Removes all configured queueing disciplines.

Since: 1.12

clearTfilters

settingTCConfigClearTfilters Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingTCConfig a) 
=> a

setting: the SettingTCConfig

-> m () 

Removes all configured queueing disciplines.

Since: 1.12

getNumQdiscs

settingTCConfigGetNumQdiscs Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingTCConfig a) 
=> a

setting: the SettingTCConfig

-> m Word32

Returns: the number of configured queueing disciplines

No description available in the introspection data.

Since: 1.12

getNumTfilters

settingTCConfigGetNumTfilters Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingTCConfig a) 
=> a

setting: the SettingTCConfig

-> m Word32

Returns: the number of configured queueing disciplines

No description available in the introspection data.

Since: 1.12

getQdisc

settingTCConfigGetQdisc Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingTCConfig a) 
=> a

setting: the SettingTCConfig

-> Word32

idx: index number of the qdisc to return

-> m TCQdisc

Returns: the qdisc at index idx

No description available in the introspection data.

Since: 1.12

getTfilter

settingTCConfigGetTfilter Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingTCConfig a) 
=> a

setting: the SettingTCConfig

-> Word32

idx: index number of the tfilter to return

-> m TCTfilter

Returns: the tfilter at index idx

No description available in the introspection data.

Since: 1.12

new

settingTCConfigNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m SettingTCConfig

Returns: the new empty SettingTCConfig object

Creates a new SettingTCConfig object with default values.

Since: 1.12

removeQdisc

settingTCConfigRemoveQdisc Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingTCConfig a) 
=> a

setting: the SettingTCConfig

-> Word32

idx: index number of the qdisc

-> m () 

Removes the qdisc at index idx.

Since: 1.12

removeQdiscByValue

settingTCConfigRemoveQdiscByValue Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingTCConfig a) 
=> a

setting: the SettingTCConfig

-> TCQdisc

qdisc: the qdisc to remove

-> m Bool

Returns: True if the qdisc was found and removed; False if it was not.

Removes the first matching qdisc that matches qdisc.

Since: 1.12

removeTfilter

settingTCConfigRemoveTfilter Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingTCConfig a) 
=> a

setting: the SettingTCConfig

-> Word32

idx: index number of the tfilter

-> m () 

Removes the tfilter at index idx.

Since: 1.12

removeTfilterByValue

settingTCConfigRemoveTfilterByValue Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingTCConfig a) 
=> a

setting: the SettingTCConfig

-> TCTfilter

tfilter: the tfilter to remove

-> m Bool

Returns: True if the tfilter was found and removed; False if it was not.

Removes the first matching tfilter that matches tfilter.

Since: 1.12

Properties

qdiscs

tfilters