Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
Linux Traffic Control Settings
Since: 1.12
Synopsis
- newtype SettingTCConfig = SettingTCConfig (ManagedPtr SettingTCConfig)
- class (GObject o, IsDescendantOf SettingTCConfig o) => IsSettingTCConfig o
- toSettingTCConfig :: (MonadIO m, IsSettingTCConfig o) => o -> m SettingTCConfig
- settingTCConfigAddQdisc :: (HasCallStack, MonadIO m, IsSettingTCConfig a) => a -> TCQdisc -> m Bool
- settingTCConfigAddTfilter :: (HasCallStack, MonadIO m, IsSettingTCConfig a) => a -> TCTfilter -> m Bool
- settingTCConfigClearQdiscs :: (HasCallStack, MonadIO m, IsSettingTCConfig a) => a -> m ()
- settingTCConfigClearTfilters :: (HasCallStack, MonadIO m, IsSettingTCConfig a) => a -> m ()
- settingTCConfigGetNumQdiscs :: (HasCallStack, MonadIO m, IsSettingTCConfig a) => a -> m Word32
- settingTCConfigGetNumTfilters :: (HasCallStack, MonadIO m, IsSettingTCConfig a) => a -> m Word32
- settingTCConfigGetQdisc :: (HasCallStack, MonadIO m, IsSettingTCConfig a) => a -> Word32 -> m TCQdisc
- settingTCConfigGetTfilter :: (HasCallStack, MonadIO m, IsSettingTCConfig a) => a -> Word32 -> m TCTfilter
- settingTCConfigNew :: (HasCallStack, MonadIO m) => m SettingTCConfig
- settingTCConfigRemoveQdisc :: (HasCallStack, MonadIO m, IsSettingTCConfig a) => a -> Word32 -> m ()
- settingTCConfigRemoveQdiscByValue :: (HasCallStack, MonadIO m, IsSettingTCConfig a) => a -> TCQdisc -> m Bool
- settingTCConfigRemoveTfilter :: (HasCallStack, MonadIO m, IsSettingTCConfig a) => a -> Word32 -> m ()
- settingTCConfigRemoveTfilterByValue :: (HasCallStack, MonadIO m, IsSettingTCConfig a) => a -> TCTfilter -> m Bool
Exported types
newtype SettingTCConfig Source #
Memory-managed wrapper type.
Instances
Eq SettingTCConfig Source # | |
Defined in GI.NM.Objects.SettingTCConfig (==) :: SettingTCConfig -> SettingTCConfig -> Bool # (/=) :: SettingTCConfig -> SettingTCConfig -> Bool # | |
GObject SettingTCConfig Source # | |
Defined in GI.NM.Objects.SettingTCConfig | |
ManagedPtrNewtype SettingTCConfig Source # | |
Defined in GI.NM.Objects.SettingTCConfig | |
TypedObject SettingTCConfig Source # | |
Defined in GI.NM.Objects.SettingTCConfig | |
HasParentTypes SettingTCConfig Source # | |
Defined in GI.NM.Objects.SettingTCConfig | |
IsGValue (Maybe SettingTCConfig) Source # | Convert |
Defined in GI.NM.Objects.SettingTCConfig gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe SettingTCConfig -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe SettingTCConfig) # | |
type ParentTypes SettingTCConfig Source # | |
Defined in GI.NM.Objects.SettingTCConfig |
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
(GObject o, IsDescendantOf SettingTCConfig o) => IsSettingTCConfig o Source # | |
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
Click to display all available methods, including inherited ones
Methods
addQdisc, addTfilter, bindProperty, bindPropertyFull, clearQdiscs, clearTfilters, compare, diff, duplicate, enumerateValues, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, optionClearByName, optionGet, optionGetAllNames, optionGetBoolean, optionGetUint32, optionSet, optionSetBoolean, optionSetUint32, ref, refSink, removeQdisc, removeQdiscByValue, removeTfilter, removeTfilterByValue, runDispose, stealData, stealQdata, thawNotify, toString, unref, verify, verifySecrets, watchClosure.
Getters
getData, getDbusPropertyType, getName, getNumQdiscs, getNumTfilters, getProperty, getQdata, getQdisc, getSecretFlags, getTfilter.
Setters
addQdisc
settingTCConfigAddQdisc Source #
:: (HasCallStack, MonadIO m, IsSettingTCConfig a) | |
=> a |
|
-> TCQdisc |
|
-> m Bool | Returns: |
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 #
:: (HasCallStack, MonadIO m, IsSettingTCConfig a) | |
=> a |
|
-> TCTfilter |
|
-> m Bool | Returns: |
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 #
:: (HasCallStack, MonadIO m, IsSettingTCConfig a) | |
=> a |
|
-> m () |
Removes all configured queueing disciplines.
Since: 1.12
clearTfilters
settingTCConfigClearTfilters Source #
:: (HasCallStack, MonadIO m, IsSettingTCConfig a) | |
=> a |
|
-> m () |
Removes all configured queueing disciplines.
Since: 1.12
getNumQdiscs
settingTCConfigGetNumQdiscs Source #
:: (HasCallStack, MonadIO m, IsSettingTCConfig a) | |
=> a |
|
-> m Word32 | Returns: the number of configured queueing disciplines |
No description available in the introspection data.
Since: 1.12
getNumTfilters
settingTCConfigGetNumTfilters Source #
:: (HasCallStack, MonadIO m, IsSettingTCConfig a) | |
=> a |
|
-> m Word32 | Returns: the number of configured queueing disciplines |
No description available in the introspection data.
Since: 1.12
getQdisc
settingTCConfigGetQdisc Source #
:: (HasCallStack, MonadIO m, IsSettingTCConfig a) | |
=> a |
|
-> Word32 |
|
-> m TCQdisc | Returns: the qdisc at index |
No description available in the introspection data.
Since: 1.12
getTfilter
settingTCConfigGetTfilter Source #
:: (HasCallStack, MonadIO m, IsSettingTCConfig a) | |
=> a |
|
-> Word32 |
|
-> m TCTfilter | Returns: the tfilter at index |
No description available in the introspection data.
Since: 1.12
new
:: (HasCallStack, MonadIO m) | |
=> m SettingTCConfig | Returns: the new empty |
Creates a new SettingTCConfig
object with default values.
Since: 1.12
removeQdisc
settingTCConfigRemoveQdisc Source #
:: (HasCallStack, MonadIO m, IsSettingTCConfig a) | |
=> a |
|
-> Word32 |
|
-> m () |
Removes the qdisc at index idx
.
Since: 1.12
removeQdiscByValue
settingTCConfigRemoveQdiscByValue Source #
:: (HasCallStack, MonadIO m, IsSettingTCConfig a) | |
=> a |
|
-> TCQdisc |
|
-> m Bool | Returns: |
Removes the first matching qdisc that matches qdisc
.
Since: 1.12
removeTfilter
settingTCConfigRemoveTfilter Source #
:: (HasCallStack, MonadIO m, IsSettingTCConfig a) | |
=> a |
|
-> Word32 |
|
-> m () |
Removes the tfilter at index idx
.
Since: 1.12
removeTfilterByValue
settingTCConfigRemoveTfilterByValue Source #
:: (HasCallStack, MonadIO m, IsSettingTCConfig a) | |
=> a |
|
-> TCTfilter |
|
-> m Bool | Returns: |
Removes the first matching tfilter that matches tfilter
.
Since: 1.12