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.SettingEthtool

Description

Ethtool Ethernet Settings

Since: 1.14

Synopsis

Exported types

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

Instances details
(GObject o, IsDescendantOf SettingEthtool o) => IsSettingEthtool o Source # 
Instance details

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

clearFeatures

settingEthtoolClearFeatures Source #

Arguments

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

setting: the SettingEthtool

-> 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

setting: the SettingEthtool

-> Text

optname: option name of the offload feature to get

-> m Ternary

Returns: a Ternary value indicating whether the offload feature is enabled, disabled, or left untouched.

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

setting: the SettingEthtool instance.

-> m ([Text], Word32)

Returns: list of set option names or Nothing if no options are set. The option names are still owned by setting and may get invalidated when setting gets modified.

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

settingEthtoolNew Source #

Arguments

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

Returns: the new empty SettingEthtool object

Creates a new SettingEthtool object with default values.

Since: 1.14

setFeature

settingEthtoolSetFeature Source #

Arguments

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

setting: the SettingEthtool

-> Text

optname: option name of the offload feature to get

-> Ternary

value: the new value to set. The special value TernaryDefault means to clear the offload feature setting.

-> 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