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

Description

No description available in the introspection data.

Since: 1.2

Synopsis

Exported types

class (GObject o, IsDescendantOf DeviceMacvlan o) => IsDeviceMacvlan o Source #

Type class for types which can be safely cast to DeviceMacvlan, for instance with toDeviceMacvlan.

Instances

Instances details
(GObject o, IsDescendantOf DeviceMacvlan o) => IsDeviceMacvlan o Source # 
Instance details

Defined in GI.NM.Objects.DeviceMacvlan

toDeviceMacvlan :: (MonadIO m, IsDeviceMacvlan o) => o -> m DeviceMacvlan Source #

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

Methods

getMode

deviceMacvlanGetMode Source #

Arguments

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

device: a DeviceMacvlan

-> m Text

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

Gets the MACVLAN mode of the device.

Since: 1.2

getNoPromisc

deviceMacvlanGetNoPromisc Source #

Arguments

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

device: a DeviceMacvlan

-> m Bool

Returns: the no-promiscuous flag of the device.

Gets the no-promiscuous flag of the device.

Since: 1.2

getParent

deviceMacvlanGetParent Source #

Arguments

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

device: a DeviceMacvlan

-> m Device

Returns: the device's parent device

No description available in the introspection data.

Since: 1.2

getTap

deviceMacvlanGetTap Source #

Arguments

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

device: a DeviceMacvlan

-> m Bool

Returns: True if the device is a MACVTAP, False if it is a MACVLAN.

Gets the device type (MACVLAN or MACVTAP).

Since: 1.2

Properties

mode

The MACVLAN mode.

Since: 1.2

getDeviceMacvlanMode :: (MonadIO m, IsDeviceMacvlan o) => o -> m Text Source #

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

get deviceMacvlan #mode

noPromisc

Whether the device has the no-promiscuos flag.

Since: 1.2

getDeviceMacvlanNoPromisc :: (MonadIO m, IsDeviceMacvlan o) => o -> m Bool Source #

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

get deviceMacvlan #noPromisc

parent

The devices's parent device.

Since: 1.2

getDeviceMacvlanParent :: (MonadIO m, IsDeviceMacvlan o) => o -> m Device Source #

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

get deviceMacvlan #parent

tap

Whether the device is a MACVTAP.

Since: 1.2

getDeviceMacvlanTap :: (MonadIO m, IsDeviceMacvlan o) => o -> m Bool Source #

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

get deviceMacvlan #tap