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

Description

Tunnel Settings

Synopsis

Exported types

newtype SettingTun Source #

Memory-managed wrapper type.

class (GObject o, IsDescendantOf SettingTun o) => IsSettingTun o Source #

Type class for types which can be safely cast to SettingTun, for instance with toSettingTun.

Instances

Instances details
(GObject o, IsDescendantOf SettingTun o) => IsSettingTun o Source # 
Instance details

Defined in GI.NM.Objects.SettingTun

toSettingTun :: (MonadIO m, IsSettingTun o) => o -> m SettingTun Source #

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

Methods

getGroup

settingTunGetGroup Source #

Arguments

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

setting: the SettingTun

-> m Text

Returns: the SettingTun:group property of the setting

No description available in the introspection data.

Since: 1.2

getMode

settingTunGetMode Source #

Arguments

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

setting: the SettingTun

-> m SettingTunMode

Returns: the SettingTun:mode property of the setting

No description available in the introspection data.

Since: 1.2

getMultiQueue

settingTunGetMultiQueue Source #

Arguments

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

setting: the SettingTun

-> m Bool

Returns: the SettingTun:multiQueue property of the setting

No description available in the introspection data.

Since: 1.2

getOwner

settingTunGetOwner Source #

Arguments

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

setting: the SettingTun

-> m Text

Returns: the SettingTun:owner property of the setting

No description available in the introspection data.

Since: 1.2

getPi

settingTunGetPi Source #

Arguments

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

setting: the SettingTun

-> m Bool

Returns: the SettingTun:pi property of the setting

No description available in the introspection data.

Since: 1.2

getVnetHdr

settingTunGetVnetHdr Source #

Arguments

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

setting: the SettingTun

-> m Bool

Returns: the SettingTun:vnet_hdr property of the setting

No description available in the introspection data.

Since: 1.2

new

settingTunNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m SettingTun

Returns: the new empty SettingTun object

Creates a new SettingTun object with default values.

Since: 1.2

Properties

group

The group ID which will own the device. If set to Nothing everyone will be able to use the device.

Since: 1.2

clearSettingTunGroup :: (MonadIO m, IsSettingTun o) => o -> m () Source #

Set the value of the “group” property to Nothing. When overloading is enabled, this is equivalent to

clear #group

constructSettingTunGroup :: (IsSettingTun o, MonadIO m) => Text -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “group” property. This is rarely needed directly, but it is used by new.

getSettingTunGroup :: (MonadIO m, IsSettingTun o) => o -> m Text Source #

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

get settingTun #group

setSettingTunGroup :: (MonadIO m, IsSettingTun o) => o -> Text -> m () Source #

Set the value of the “group” property. When overloading is enabled, this is equivalent to

set settingTun [ #group := value ]

mode

The operating mode of the virtual device. Allowed values are SettingTunModeTun to create a layer 3 device and SettingTunModeTap to create an Ethernet-like layer 2 one.

Since: 1.2

constructSettingTunMode :: (IsSettingTun o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “mode” property. This is rarely needed directly, but it is used by new.

getSettingTunMode :: (MonadIO m, IsSettingTun o) => o -> m Word32 Source #

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

get settingTun #mode

setSettingTunMode :: (MonadIO m, IsSettingTun o) => o -> Word32 -> m () Source #

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

set settingTun [ #mode := value ]

multiQueue

If the property is set to True, the interface will support multiple file descriptors (queues) to parallelize packet sending or receiving. Otherwise, the interface will only support a single queue.

Since: 1.2

constructSettingTunMultiQueue :: (IsSettingTun o, MonadIO m) => Bool -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “multi-queue” property. This is rarely needed directly, but it is used by new.

getSettingTunMultiQueue :: (MonadIO m, IsSettingTun o) => o -> m Bool Source #

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

get settingTun #multiQueue

setSettingTunMultiQueue :: (MonadIO m, IsSettingTun o) => o -> Bool -> m () Source #

Set the value of the “multi-queue” property. When overloading is enabled, this is equivalent to

set settingTun [ #multiQueue := value ]

owner

The user ID which will own the device. If set to Nothing everyone will be able to use the device.

Since: 1.2

clearSettingTunOwner :: (MonadIO m, IsSettingTun o) => o -> m () Source #

Set the value of the “owner” property to Nothing. When overloading is enabled, this is equivalent to

clear #owner

constructSettingTunOwner :: (IsSettingTun o, MonadIO m) => Text -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “owner” property. This is rarely needed directly, but it is used by new.

getSettingTunOwner :: (MonadIO m, IsSettingTun o) => o -> m Text Source #

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

get settingTun #owner

setSettingTunOwner :: (MonadIO m, IsSettingTun o) => o -> Text -> m () Source #

Set the value of the “owner” property. When overloading is enabled, this is equivalent to

set settingTun [ #owner := value ]

pi

If True the interface will prepend a 4 byte header describing the physical interface to the packets.

Since: 1.2

constructSettingTunPi :: (IsSettingTun o, MonadIO m) => Bool -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “pi” property. This is rarely needed directly, but it is used by new.

getSettingTunPi :: (MonadIO m, IsSettingTun o) => o -> m Bool Source #

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

get settingTun #pi

setSettingTunPi :: (MonadIO m, IsSettingTun o) => o -> Bool -> m () Source #

Set the value of the “pi” property. When overloading is enabled, this is equivalent to

set settingTun [ #pi := value ]

vnetHdr

If True the IFF_VNET_HDR the tunnel packets will include a virtio network header.

Since: 1.2

constructSettingTunVnetHdr :: (IsSettingTun o, MonadIO m) => Bool -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “vnet-hdr” property. This is rarely needed directly, but it is used by new.

getSettingTunVnetHdr :: (MonadIO m, IsSettingTun o) => o -> m Bool Source #

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

get settingTun #vnetHdr

setSettingTunVnetHdr :: (MonadIO m, IsSettingTun o) => o -> Bool -> m () Source #

Set the value of the “vnet-hdr” property. When overloading is enabled, this is equivalent to

set settingTun [ #vnetHdr := value ]