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.SettingInfiniband
Description
Infiniband Settings
Synopsis
- newtype SettingInfiniband = SettingInfiniband (ManagedPtr SettingInfiniband)
- class (GObject o, IsDescendantOf SettingInfiniband o) => IsSettingInfiniband o
- toSettingInfiniband :: (MonadIO m, IsSettingInfiniband o) => o -> m SettingInfiniband
- settingInfinibandGetMacAddress :: (HasCallStack, MonadIO m, IsSettingInfiniband a) => a -> m Text
- settingInfinibandGetMtu :: (HasCallStack, MonadIO m, IsSettingInfiniband a) => a -> m Word32
- settingInfinibandGetPKey :: (HasCallStack, MonadIO m, IsSettingInfiniband a) => a -> m Int32
- settingInfinibandGetParent :: (HasCallStack, MonadIO m, IsSettingInfiniband a) => a -> m Text
- settingInfinibandGetTransportMode :: (HasCallStack, MonadIO m, IsSettingInfiniband a) => a -> m Text
- settingInfinibandGetVirtualInterfaceName :: (HasCallStack, MonadIO m, IsSettingInfiniband a) => a -> m Text
- settingInfinibandNew :: (HasCallStack, MonadIO m) => m SettingInfiniband
- clearSettingInfinibandMacAddress :: (MonadIO m, IsSettingInfiniband o) => o -> m ()
- constructSettingInfinibandMacAddress :: (IsSettingInfiniband o, MonadIO m) => Text -> m (GValueConstruct o)
- getSettingInfinibandMacAddress :: (MonadIO m, IsSettingInfiniband o) => o -> m Text
- setSettingInfinibandMacAddress :: (MonadIO m, IsSettingInfiniband o) => o -> Text -> m ()
- constructSettingInfinibandMtu :: (IsSettingInfiniband o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getSettingInfinibandMtu :: (MonadIO m, IsSettingInfiniband o) => o -> m Word32
- setSettingInfinibandMtu :: (MonadIO m, IsSettingInfiniband o) => o -> Word32 -> m ()
- constructSettingInfinibandPKey :: (IsSettingInfiniband o, MonadIO m) => Int32 -> m (GValueConstruct o)
- getSettingInfinibandPKey :: (MonadIO m, IsSettingInfiniband o) => o -> m Int32
- setSettingInfinibandPKey :: (MonadIO m, IsSettingInfiniband o) => o -> Int32 -> m ()
- clearSettingInfinibandParent :: (MonadIO m, IsSettingInfiniband o) => o -> m ()
- constructSettingInfinibandParent :: (IsSettingInfiniband o, MonadIO m) => Text -> m (GValueConstruct o)
- getSettingInfinibandParent :: (MonadIO m, IsSettingInfiniband o) => o -> m Text
- setSettingInfinibandParent :: (MonadIO m, IsSettingInfiniband o) => o -> Text -> m ()
- clearSettingInfinibandTransportMode :: (MonadIO m, IsSettingInfiniband o) => o -> m ()
- constructSettingInfinibandTransportMode :: (IsSettingInfiniband o, MonadIO m) => Text -> m (GValueConstruct o)
- getSettingInfinibandTransportMode :: (MonadIO m, IsSettingInfiniband o) => o -> m Text
- setSettingInfinibandTransportMode :: (MonadIO m, IsSettingInfiniband o) => o -> Text -> m ()
Exported types
newtype SettingInfiniband Source #
Memory-managed wrapper type.
Constructors
SettingInfiniband (ManagedPtr SettingInfiniband) |
Instances
class (GObject o, IsDescendantOf SettingInfiniband o) => IsSettingInfiniband o Source #
Type class for types which can be safely cast to SettingInfiniband
, for instance with toSettingInfiniband
.
Instances
(GObject o, IsDescendantOf SettingInfiniband o) => IsSettingInfiniband o Source # | |
Defined in GI.NM.Objects.SettingInfiniband |
toSettingInfiniband :: (MonadIO m, IsSettingInfiniband o) => o -> m SettingInfiniband Source #
Cast to SettingInfiniband
, 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, 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, getMacAddress, getMtu, getName, getPKey, getParent, getProperty, getQdata, getSecretFlags, getTransportMode, getVirtualInterfaceName.
Setters
getMacAddress
settingInfinibandGetMacAddress Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingInfiniband a) | |
=> a |
|
-> m Text | Returns: the SettingInfiniband:macAddress property of the setting |
No description available in the introspection data.
getMtu
settingInfinibandGetMtu Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingInfiniband a) | |
=> a |
|
-> m Word32 | Returns: the SettingInfiniband:mtu property of the setting |
No description available in the introspection data.
getPKey
settingInfinibandGetPKey Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingInfiniband a) | |
=> a |
|
-> m Int32 | Returns: the IPoIB P_Key |
Returns the P_Key to use for this device. A value of -1 means to use the default P_Key (aka "the P_Key at index 0"). Otherwise, it is a 16-bit unsigned integer.
getParent
settingInfinibandGetParent Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingInfiniband a) | |
=> a |
|
-> m Text | Returns: the parent interface name |
Returns the parent interface name for this device, if set.
getTransportMode
settingInfinibandGetTransportMode Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingInfiniband a) | |
=> a |
|
-> m Text | Returns: the IPoIB transport mode |
Returns the transport mode for this device. Either 'datagram' or 'connected'.
getVirtualInterfaceName
settingInfinibandGetVirtualInterfaceName Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingInfiniband a) | |
=> a |
|
-> m Text | Returns: the interface name, or |
Returns the interface name created by combining SettingInfiniband:parent
and SettingInfiniband:pKey. (If either property is unset, this will
return Nothing
.)
new
Arguments
:: (HasCallStack, MonadIO m) | |
=> m SettingInfiniband | Returns: the new empty |
Creates a new SettingInfiniband
object with default values.
Properties
macAddress
If specified, this connection will only apply to the IPoIB device whose permanent MAC address matches. This property does not change the MAC address of the device (i.e. MAC spoofing).
clearSettingInfinibandMacAddress :: (MonadIO m, IsSettingInfiniband o) => o -> m () Source #
Set the value of the “mac-address
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#macAddress
constructSettingInfinibandMacAddress :: (IsSettingInfiniband o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “mac-address
” property. This is rarely needed directly, but it is used by new
.
getSettingInfinibandMacAddress :: (MonadIO m, IsSettingInfiniband o) => o -> m Text Source #
Get the value of the “mac-address
” property.
When overloading is enabled, this is equivalent to
get
settingInfiniband #macAddress
setSettingInfinibandMacAddress :: (MonadIO m, IsSettingInfiniband o) => o -> Text -> m () Source #
Set the value of the “mac-address
” property.
When overloading is enabled, this is equivalent to
set
settingInfiniband [ #macAddress:=
value ]
mtu
If non-zero, only transmit packets of the specified size or smaller, breaking larger packets up into multiple frames.
constructSettingInfinibandMtu :: (IsSettingInfiniband o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “mtu
” property. This is rarely needed directly, but it is used by new
.
getSettingInfinibandMtu :: (MonadIO m, IsSettingInfiniband o) => o -> m Word32 Source #
Get the value of the “mtu
” property.
When overloading is enabled, this is equivalent to
get
settingInfiniband #mtu
setSettingInfinibandMtu :: (MonadIO m, IsSettingInfiniband o) => o -> Word32 -> m () Source #
Set the value of the “mtu
” property.
When overloading is enabled, this is equivalent to
set
settingInfiniband [ #mtu:=
value ]
pKey
The InfiniBand p-key to use for this device. A value of -1 means to use the default p-key (aka "the p-key at index 0"). Otherwise, it is a 16-bit unsigned integer, whose high bit 0x8000 is set if it is a "full membership" p-key. The values 0 and 0x8000 are not allowed.
With the p-key set, the interface name is always "$parent.$p_key". Setting "connection.interface-name" to another name is not supported.
Note that kernel will internally always set the full membership bit, although the interface name does not reflect that. Usually the user would want to configure a full membership p-key with 0x8000 flag set.
constructSettingInfinibandPKey :: (IsSettingInfiniband o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “p-key
” property. This is rarely needed directly, but it is used by new
.
getSettingInfinibandPKey :: (MonadIO m, IsSettingInfiniband o) => o -> m Int32 Source #
Get the value of the “p-key
” property.
When overloading is enabled, this is equivalent to
get
settingInfiniband #pKey
setSettingInfinibandPKey :: (MonadIO m, IsSettingInfiniband o) => o -> Int32 -> m () Source #
Set the value of the “p-key
” property.
When overloading is enabled, this is equivalent to
set
settingInfiniband [ #pKey:=
value ]
parent
The interface name of the parent device of this device. Normally Nothing
,
but if the SettingInfiniband
:p_key
property is set, then you must
specify the base device by setting either this property or
SettingInfiniband:macAddress.
clearSettingInfinibandParent :: (MonadIO m, IsSettingInfiniband o) => o -> m () Source #
Set the value of the “parent
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#parent
constructSettingInfinibandParent :: (IsSettingInfiniband o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “parent
” property. This is rarely needed directly, but it is used by new
.
getSettingInfinibandParent :: (MonadIO m, IsSettingInfiniband o) => o -> m Text Source #
Get the value of the “parent
” property.
When overloading is enabled, this is equivalent to
get
settingInfiniband #parent
setSettingInfinibandParent :: (MonadIO m, IsSettingInfiniband o) => o -> Text -> m () Source #
Set the value of the “parent
” property.
When overloading is enabled, this is equivalent to
set
settingInfiniband [ #parent:=
value ]
transportMode
The IP-over-InfiniBand transport mode. Either "datagram" or "connected".
clearSettingInfinibandTransportMode :: (MonadIO m, IsSettingInfiniband o) => o -> m () Source #
Set the value of the “transport-mode
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#transportMode
constructSettingInfinibandTransportMode :: (IsSettingInfiniband o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “transport-mode
” property. This is rarely needed directly, but it is used by new
.
getSettingInfinibandTransportMode :: (MonadIO m, IsSettingInfiniband o) => o -> m Text Source #
Get the value of the “transport-mode
” property.
When overloading is enabled, this is equivalent to
get
settingInfiniband #transportMode
setSettingInfinibandTransportMode :: (MonadIO m, IsSettingInfiniband o) => o -> Text -> m () Source #
Set the value of the “transport-mode
” property.
When overloading is enabled, this is equivalent to
set
settingInfiniband [ #transportMode:=
value ]