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

Description

No description available in the introspection data.

Synopsis

Exported types

newtype DeviceTeam Source #

Memory-managed wrapper type.

class (GObject o, IsDescendantOf DeviceTeam o) => IsDeviceTeam o Source #

Type class for types which can be safely cast to DeviceTeam, for instance with toDeviceTeam.

Instances

Instances details
(GObject o, IsDescendantOf DeviceTeam o) => IsDeviceTeam o Source # 
Instance details

Defined in GI.NM.Objects.DeviceTeam

toDeviceTeam :: (MonadIO m, IsDeviceTeam o) => o -> m DeviceTeam Source #

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

Methods

getCarrier

deviceTeamGetCarrier Source #

Arguments

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

device: a DeviceTeam

-> m Bool

Returns: True if the device has carrier

Whether the device has carrier.

getConfig

deviceTeamGetConfig Source #

Arguments

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

device: a DeviceTeam

-> m Text

Returns: the current configuration. This is the internal string used by the device, and must not be modified.

Gets the current JSON configuration of the DeviceTeam

Since: 1.4

getSlaves

deviceTeamGetSlaves Source #

Arguments

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

device: a DeviceTeam

-> m [Device]

Returns: the PtrArray containing NMDevices that are ports of device. This is the internal copy used by the device, and must not be modified.

Deprecated: (Since version 1.34)Use deviceGetPorts instead.

Gets the devices currently attach as port to device.

Properties

carrier

Whether the device has carrier.

getDeviceTeamCarrier :: (MonadIO m, IsDeviceTeam o) => o -> m Bool Source #

Get the value of the “carrier” property. When overloading is enabled, this is equivalent to

get deviceTeam #carrier

config

The current JSON configuration of the device.

Since: 1.4

getDeviceTeamConfig :: (MonadIO m, IsDeviceTeam o) => o -> m Text Source #

Get the value of the “config” property. When overloading is enabled, this is equivalent to

get deviceTeam #config

slaves