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

Description

No description available in the introspection data.

Synopsis

Exported types

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

Instances details
(GObject o, IsDescendantOf DeviceEthernet o) => IsDeviceEthernet o Source # 
Instance details

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

getCarrier

deviceEthernetGetCarrier Source #

Arguments

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

device: a DeviceEthernet

-> m Bool

Returns: True if the device has carrier

Whether the device has carrier.

getPermanentHwAddress

deviceEthernetGetPermanentHwAddress Source #

Arguments

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

device: a DeviceEthernet

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

device: a DeviceEthernet

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

device: a DeviceEthernet

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