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.DeviceEthernet
Description
No description available in the introspection data.
Synopsis
- newtype DeviceEthernet = DeviceEthernet (ManagedPtr DeviceEthernet)
- class (GObject o, IsDescendantOf DeviceEthernet o) => IsDeviceEthernet o
- toDeviceEthernet :: (MonadIO m, IsDeviceEthernet o) => o -> m DeviceEthernet
- deviceEthernetGetCarrier :: (HasCallStack, MonadIO m, IsDeviceEthernet a) => a -> m Bool
- deviceEthernetGetPermanentHwAddress :: (HasCallStack, MonadIO m, IsDeviceEthernet a) => a -> m Text
- deviceEthernetGetS390Subchannels :: (HasCallStack, MonadIO m, IsDeviceEthernet a) => a -> m [Text]
- deviceEthernetGetSpeed :: (HasCallStack, MonadIO m, IsDeviceEthernet a) => a -> m Word32
- getDeviceEthernetCarrier :: (MonadIO m, IsDeviceEthernet o) => o -> m Bool
- getDeviceEthernetPermHwAddress :: (MonadIO m, IsDeviceEthernet o) => o -> m (Maybe Text)
- getDeviceEthernetS390Subchannels :: (MonadIO m, IsDeviceEthernet o) => o -> m [Text]
- getDeviceEthernetSpeed :: (MonadIO m, IsDeviceEthernet o) => o -> m Word32
Exported types
newtype DeviceEthernet Source #
Memory-managed wrapper type.
Constructors
DeviceEthernet (ManagedPtr DeviceEthernet) |
Instances
Eq DeviceEthernet Source # | |
Defined in GI.NM.Objects.DeviceEthernet Methods (==) :: DeviceEthernet -> DeviceEthernet -> Bool # (/=) :: DeviceEthernet -> DeviceEthernet -> Bool # | |
GObject DeviceEthernet Source # | |
Defined in GI.NM.Objects.DeviceEthernet | |
ManagedPtrNewtype DeviceEthernet Source # | |
Defined in GI.NM.Objects.DeviceEthernet Methods toManagedPtr :: DeviceEthernet -> ManagedPtr DeviceEthernet # | |
TypedObject DeviceEthernet Source # | |
Defined in GI.NM.Objects.DeviceEthernet | |
HasParentTypes DeviceEthernet Source # | |
Defined in GI.NM.Objects.DeviceEthernet | |
IsGValue (Maybe DeviceEthernet) Source # | Convert |
Defined in GI.NM.Objects.DeviceEthernet Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe DeviceEthernet -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe DeviceEthernet) # | |
type ParentTypes DeviceEthernet Source # | |
Defined in GI.NM.Objects.DeviceEthernet |
class (GObject o, IsDescendantOf DeviceEthernet o) => IsDeviceEthernet o Source #
Type class for types which can be safely cast to DeviceEthernet
, for instance with toDeviceEthernet
.
Instances
(GObject o, IsDescendantOf DeviceEthernet o) => IsDeviceEthernet o Source # | |
Defined in GI.NM.Objects.DeviceEthernet |
toDeviceEthernet :: (MonadIO m, IsDeviceEthernet o) => o -> m DeviceEthernet Source #
Cast to DeviceEthernet
, 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, connectionCompatible, connectionValid, delete, deleteAsync, deleteFinish, disconnect, disconnectAsync, disconnectFinish, filterConnections, forceFloating, freezeNotify, getv, isFloating, isReal, isSoftware, notify, notifyByPspec, reapply, reapplyAsync, reapplyFinish, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getActiveConnection, getAppliedConnection, getAppliedConnectionAsync, getAppliedConnectionFinish, getAutoconnect, getAvailableConnections, getCapabilities, getCarrier, getClient, getConnectivity, getData, getDescription, getDeviceType, getDhcp4Config, getDhcp6Config, getDriver, getDriverVersion, getFirmwareMissing, getFirmwareVersion, getHwAddress, getIface, getInterfaceFlags, getIp4Config, getIp6Config, getIpIface, getLldpNeighbors, getManaged, getMetered, getMtu, getNmPluginMissing, getPath, getPermanentHwAddress, getPhysicalPortId, getPorts, getProduct, getProperty, getQdata, getS390Subchannels, getSettingType, getSpeed, getState, getStateReason, getTypeDescription, getUdi, getVendor.
Setters
setAutoconnect, setData, setDataFull, setManaged, setProperty.
getCarrier
deviceEthernetGetCarrier Source #
Arguments
:: (HasCallStack, MonadIO m, IsDeviceEthernet a) | |
=> a |
|
-> m Bool | Returns: |
Whether the device has carrier.
getPermanentHwAddress
deviceEthernetGetPermanentHwAddress Source #
Arguments
:: (HasCallStack, MonadIO m, IsDeviceEthernet a) | |
=> a |
|
-> m Text | Returns: the permanent hardware address. This is the internal string used by the device, and must not be modified. |
Gets the permanent hardware (MAC) address of the DeviceEthernet
getS390Subchannels
deviceEthernetGetS390Subchannels Source #
Arguments
:: (HasCallStack, MonadIO m, IsDeviceEthernet a) | |
=> a |
|
-> m [Text] | Returns: array of strings, each specifying one subchannel the s390 device uses to communicate to the host. |
Return the list of s390 subchannels if the device supports them.
Since: 1.2
getSpeed
deviceEthernetGetSpeed Source #
Arguments
:: (HasCallStack, MonadIO m, IsDeviceEthernet a) | |
=> a |
|
-> m Word32 | Returns: the speed of the device in Mbit/s |
Gets the speed of the DeviceEthernet
in Mbit/s.
Properties
carrier
Whether the device has carrier.
getDeviceEthernetCarrier :: (MonadIO m, IsDeviceEthernet o) => o -> m Bool Source #
Get the value of the “carrier
” property.
When overloading is enabled, this is equivalent to
get
deviceEthernet #carrier
permHwAddress
The permanent hardware (MAC) address of the device.
getDeviceEthernetPermHwAddress :: (MonadIO m, IsDeviceEthernet o) => o -> m (Maybe Text) Source #
Get the value of the “perm-hw-address
” property.
When overloading is enabled, this is equivalent to
get
deviceEthernet #permHwAddress
s390Subchannels
Identifies subchannels of this network device used for communication with z/VM or s390 host.
Since: 1.2
getDeviceEthernetS390Subchannels :: (MonadIO m, IsDeviceEthernet o) => o -> m [Text] Source #
Get the value of the “s390-subchannels
” property.
When overloading is enabled, this is equivalent to
get
deviceEthernet #s390Subchannels
speed
The speed of the device.
getDeviceEthernetSpeed :: (MonadIO m, IsDeviceEthernet o) => o -> m Word32 Source #
Get the value of the “speed
” property.
When overloading is enabled, this is equivalent to
get
deviceEthernet #speed