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

Description

Link settings

Since: 1.44

Synopsis

Exported types

newtype SettingLink Source #

Memory-managed wrapper type.

class (GObject o, IsDescendantOf SettingLink o) => IsSettingLink o Source #

Type class for types which can be safely cast to SettingLink, for instance with toSettingLink.

Instances

toSettingLink :: (MonadIO m, IsSettingLink o) => o -> m SettingLink Source #

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

Methods

getGroMaxSize

settingLinkGetGroMaxSize Source #

Arguments

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

setting: the SettingLink

-> m Int64

Returns: the 'gro-max-size' property value

Returns the value contained in the SettingLink:groMaxSize property.

Since: 1.44

getGsoMaxSegments

settingLinkGetGsoMaxSegments Source #

Arguments

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

setting: the SettingLink

-> m Int64

Returns: the 'gso-max-segments' property value

Returns the value contained in the SettingLink:gsoMaxSegments property.

Since: 1.44

getGsoMaxSize

settingLinkGetGsoMaxSize Source #

Arguments

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

setting: the SettingLink

-> m Int64

Returns: the 'gso-max-size' property value

Returns the value contained in the SettingLink:gsoMaxSize property.

Since: 1.44

getTxQueueLength

settingLinkGetTxQueueLength Source #

Arguments

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

setting: the SettingLink

-> m Int64

Returns: the 'tx-queue-length' property value

Returns the value contained in the SettingLink:txQueueLength property.

Since: 1.44

new

settingLinkNew Source #

Arguments

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

Returns: the new empty SettingLink object

Creates a new SettingLink object with default values.

Since: 1.44

Properties

groMaxSize

The maximum size of a packet built by the Generic Receive Offload stack for this device. The value must be between 0 and 4294967295. When set to -1, the existing value is preserved.

Since: 1.44

constructSettingLinkGroMaxSize :: (IsSettingLink o, MonadIO m) => Int64 -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “gro-max-size” property. This is rarely needed directly, but it is used by new.

getSettingLinkGroMaxSize :: (MonadIO m, IsSettingLink o) => o -> m Int64 Source #

Get the value of the “gro-max-size” property. When overloading is enabled, this is equivalent to

get settingLink #groMaxSize

setSettingLinkGroMaxSize :: (MonadIO m, IsSettingLink o) => o -> Int64 -> m () Source #

Set the value of the “gro-max-size” property. When overloading is enabled, this is equivalent to

set settingLink [ #groMaxSize := value ]

gsoMaxSegments

The maximum segments of a Generic Segment Offload packet the device should accept. The value must be between 0 and 4294967295. When set to -1, the existing value is preserved.

Since: 1.44

constructSettingLinkGsoMaxSegments :: (IsSettingLink o, MonadIO m) => Int64 -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “gso-max-segments” property. This is rarely needed directly, but it is used by new.

getSettingLinkGsoMaxSegments :: (MonadIO m, IsSettingLink o) => o -> m Int64 Source #

Get the value of the “gso-max-segments” property. When overloading is enabled, this is equivalent to

get settingLink #gsoMaxSegments

setSettingLinkGsoMaxSegments :: (MonadIO m, IsSettingLink o) => o -> Int64 -> m () Source #

Set the value of the “gso-max-segments” property. When overloading is enabled, this is equivalent to

set settingLink [ #gsoMaxSegments := value ]

gsoMaxSize

The maximum size of a Generic Segment Offload packet the device should accept. The value must be between 0 and 4294967295. When set to -1, the existing value is preserved.

Since: 1.44

constructSettingLinkGsoMaxSize :: (IsSettingLink o, MonadIO m) => Int64 -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “gso-max-size” property. This is rarely needed directly, but it is used by new.

getSettingLinkGsoMaxSize :: (MonadIO m, IsSettingLink o) => o -> m Int64 Source #

Get the value of the “gso-max-size” property. When overloading is enabled, this is equivalent to

get settingLink #gsoMaxSize

setSettingLinkGsoMaxSize :: (MonadIO m, IsSettingLink o) => o -> Int64 -> m () Source #

Set the value of the “gso-max-size” property. When overloading is enabled, this is equivalent to

set settingLink [ #gsoMaxSize := value ]

txQueueLength

The size of the transmit queue for the device, in number of packets. The value must be between 0 and 4294967295. When set to -1, the existing value is preserved.

Since: 1.44

constructSettingLinkTxQueueLength :: (IsSettingLink o, MonadIO m) => Int64 -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “tx-queue-length” property. This is rarely needed directly, but it is used by new.

getSettingLinkTxQueueLength :: (MonadIO m, IsSettingLink o) => o -> m Int64 Source #

Get the value of the “tx-queue-length” property. When overloading is enabled, this is equivalent to

get settingLink #txQueueLength

setSettingLinkTxQueueLength :: (MonadIO m, IsSettingLink o) => o -> Int64 -> m () Source #

Set the value of the “tx-queue-length” property. When overloading is enabled, this is equivalent to

set settingLink [ #txQueueLength := value ]