Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GI.NM.Objects.SettingEthtool
Description
Ethtool Ethernet Settings
Since: 1.14
Synopsis
- newtype SettingEthtool = SettingEthtool (ManagedPtr SettingEthtool)
- class (GObject o, IsDescendantOf SettingEthtool o) => IsSettingEthtool o
- toSettingEthtool :: (MonadIO m, IsSettingEthtool o) => o -> m SettingEthtool
- settingEthtoolClearFeatures :: (HasCallStack, MonadIO m, IsSettingEthtool a) => a -> m ()
- settingEthtoolGetFeature :: (HasCallStack, MonadIO m, IsSettingEthtool a) => a -> Text -> m Ternary
- settingEthtoolGetOptnames :: (HasCallStack, MonadIO m, IsSettingEthtool a) => a -> m ([Text], Word32)
- settingEthtoolNew :: (HasCallStack, MonadIO m) => m SettingEthtool
- settingEthtoolSetFeature :: (HasCallStack, MonadIO m, IsSettingEthtool a) => a -> Text -> Ternary -> m ()
Exported types
newtype SettingEthtool Source #
Memory-managed wrapper type.
Constructors
SettingEthtool (ManagedPtr SettingEthtool) |
Instances
Eq SettingEthtool Source # | |
Defined in GI.NM.Objects.SettingEthtool Methods (==) :: SettingEthtool -> SettingEthtool -> Bool # (/=) :: SettingEthtool -> SettingEthtool -> Bool # | |
GObject SettingEthtool Source # | |
Defined in GI.NM.Objects.SettingEthtool | |
ManagedPtrNewtype SettingEthtool Source # | |
Defined in GI.NM.Objects.SettingEthtool Methods toManagedPtr :: SettingEthtool -> ManagedPtr SettingEthtool # | |
TypedObject SettingEthtool Source # | |
Defined in GI.NM.Objects.SettingEthtool | |
HasParentTypes SettingEthtool Source # | |
Defined in GI.NM.Objects.SettingEthtool | |
IsGValue (Maybe SettingEthtool) Source # | Convert |
Defined in GI.NM.Objects.SettingEthtool Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe SettingEthtool -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe SettingEthtool) # | |
type ParentTypes SettingEthtool Source # | |
Defined in GI.NM.Objects.SettingEthtool |
class (GObject o, IsDescendantOf SettingEthtool o) => IsSettingEthtool o Source #
Type class for types which can be safely cast to SettingEthtool
, for instance with toSettingEthtool
.
Instances
(GObject o, IsDescendantOf SettingEthtool o) => IsSettingEthtool o Source # | |
Defined in GI.NM.Objects.SettingEthtool |
toSettingEthtool :: (MonadIO m, IsSettingEthtool o) => o -> m SettingEthtool Source #
Cast to SettingEthtool
, 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
bindProperty, bindPropertyFull, clearFeatures, compare, diff, duplicate, enumerateValues, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, optionClearByName, optionGet, optionGetAllNames, optionGetBoolean, optionGetUint32, optionSet, optionSetBoolean, optionSetUint32, ref, refSink, runDispose, stealData, stealQdata, thawNotify, toString, unref, verify, verifySecrets, watchClosure.
Getters
getData, getDbusPropertyType, getFeature, getName, getOptnames, getProperty, getQdata, getSecretFlags.
Setters
setData, setDataFull, setFeature, setProperty, setSecretFlags.
clearFeatures
settingEthtoolClearFeatures Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingEthtool a) | |
=> a |
|
-> m () |
Deprecated: (Since version 1.26)use settingOptionClearByName
with ethtoolOptnameIsFeature
predicate instead.
Clears all offload features settings
Since: 1.14
getFeature
settingEthtoolGetFeature Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingEthtool a) | |
=> a |
|
-> Text |
|
-> m Ternary | Returns: a |
Deprecated: (Since version 1.26)use settingOptionGetBoolean
instead.
Gets and offload feature setting. Returns TernaryDefault
if the
feature is not set.
Note that optname
must be a valid name for a feature, according to
ethtoolOptnameIsFeature
.
Since: 1.14
getOptnames
settingEthtoolGetOptnames Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingEthtool a) | |
=> a |
|
-> m ([Text], Word32) | Returns: list of set option
names or |
Deprecated: (Since version 1.26)use settingOptionGetAllNames
instead.
This returns all options names that are set. This includes the feature names
like ETHTOOL_OPTNAME_FEATURE_GRO
. See ethtoolOptnameIsFeature
to
check whether the option name is valid for offload features.
Since: 1.20
new
Arguments
:: (HasCallStack, MonadIO m) | |
=> m SettingEthtool | Returns: the new empty |
Creates a new SettingEthtool
object with default values.
Since: 1.14
setFeature
settingEthtoolSetFeature Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingEthtool a) | |
=> a |
|
-> Text |
|
-> Ternary |
|
-> m () |
Deprecated: (Since version 1.26)use settingOptionSet
or settingOptionSetBoolean
instead.
Sets and offload feature setting.
Note that optname
must be a valid name for a feature, according to
ethtoolOptnameIsFeature
.
Since: 1.14