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.SettingTun
Description
Tunnel Settings
Synopsis
- newtype SettingTun = SettingTun (ManagedPtr SettingTun)
- class (GObject o, IsDescendantOf SettingTun o) => IsSettingTun o
- toSettingTun :: (MonadIO m, IsSettingTun o) => o -> m SettingTun
- settingTunGetGroup :: (HasCallStack, MonadIO m, IsSettingTun a) => a -> m Text
- settingTunGetMode :: (HasCallStack, MonadIO m, IsSettingTun a) => a -> m SettingTunMode
- settingTunGetMultiQueue :: (HasCallStack, MonadIO m, IsSettingTun a) => a -> m Bool
- settingTunGetOwner :: (HasCallStack, MonadIO m, IsSettingTun a) => a -> m Text
- settingTunGetPi :: (HasCallStack, MonadIO m, IsSettingTun a) => a -> m Bool
- settingTunGetVnetHdr :: (HasCallStack, MonadIO m, IsSettingTun a) => a -> m Bool
- settingTunNew :: (HasCallStack, MonadIO m) => m SettingTun
- clearSettingTunGroup :: (MonadIO m, IsSettingTun o) => o -> m ()
- constructSettingTunGroup :: (IsSettingTun o, MonadIO m) => Text -> m (GValueConstruct o)
- getSettingTunGroup :: (MonadIO m, IsSettingTun o) => o -> m Text
- setSettingTunGroup :: (MonadIO m, IsSettingTun o) => o -> Text -> m ()
- constructSettingTunMode :: (IsSettingTun o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getSettingTunMode :: (MonadIO m, IsSettingTun o) => o -> m Word32
- setSettingTunMode :: (MonadIO m, IsSettingTun o) => o -> Word32 -> m ()
- constructSettingTunMultiQueue :: (IsSettingTun o, MonadIO m) => Bool -> m (GValueConstruct o)
- getSettingTunMultiQueue :: (MonadIO m, IsSettingTun o) => o -> m Bool
- setSettingTunMultiQueue :: (MonadIO m, IsSettingTun o) => o -> Bool -> m ()
- clearSettingTunOwner :: (MonadIO m, IsSettingTun o) => o -> m ()
- constructSettingTunOwner :: (IsSettingTun o, MonadIO m) => Text -> m (GValueConstruct o)
- getSettingTunOwner :: (MonadIO m, IsSettingTun o) => o -> m Text
- setSettingTunOwner :: (MonadIO m, IsSettingTun o) => o -> Text -> m ()
- constructSettingTunPi :: (IsSettingTun o, MonadIO m) => Bool -> m (GValueConstruct o)
- getSettingTunPi :: (MonadIO m, IsSettingTun o) => o -> m Bool
- setSettingTunPi :: (MonadIO m, IsSettingTun o) => o -> Bool -> m ()
- constructSettingTunVnetHdr :: (IsSettingTun o, MonadIO m) => Bool -> m (GValueConstruct o)
- getSettingTunVnetHdr :: (MonadIO m, IsSettingTun o) => o -> m Bool
- setSettingTunVnetHdr :: (MonadIO m, IsSettingTun o) => o -> Bool -> m ()
Exported types
newtype SettingTun Source #
Memory-managed wrapper type.
Constructors
SettingTun (ManagedPtr SettingTun) |
Instances
Eq SettingTun Source # | |
Defined in GI.NM.Objects.SettingTun | |
GObject SettingTun Source # | |
Defined in GI.NM.Objects.SettingTun | |
ManagedPtrNewtype SettingTun Source # | |
Defined in GI.NM.Objects.SettingTun Methods | |
TypedObject SettingTun Source # | |
Defined in GI.NM.Objects.SettingTun | |
HasParentTypes SettingTun Source # | |
Defined in GI.NM.Objects.SettingTun | |
IsGValue (Maybe SettingTun) Source # | Convert |
Defined in GI.NM.Objects.SettingTun Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe SettingTun -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe SettingTun) # | |
type ParentTypes SettingTun Source # | |
Defined in GI.NM.Objects.SettingTun |
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
(GObject o, IsDescendantOf SettingTun o) => IsSettingTun o Source # | |
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
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, compare, diff, duplicate, enumerateValues, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, optionClearByName, optionGet, optionGetAllNames, optionGetBoolean, optionGetUint32, optionSet, optionSetBoolean, optionSetUint32, ref, refSink, runDispose, stealData, stealQdata, thawNotify, toString, unref, verify, verifySecrets, watchClosure.
Getters
getData, getDbusPropertyType, getGroup, getMode, getMultiQueue, getName, getOwner, getPi, getProperty, getQdata, getSecretFlags, getVnetHdr.
Setters
getGroup
Arguments
:: (HasCallStack, MonadIO m, IsSettingTun a) | |
=> a |
|
-> m Text | Returns: the SettingTun:group property of the setting |
No description available in the introspection data.
Since: 1.2
getMode
Arguments
:: (HasCallStack, MonadIO m, IsSettingTun a) | |
=> a |
|
-> 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 |
|
-> m Bool | Returns: the SettingTun:multiQueue property of the setting |
No description available in the introspection data.
Since: 1.2
getOwner
Arguments
:: (HasCallStack, MonadIO m, IsSettingTun a) | |
=> a |
|
-> m Text | Returns: the SettingTun:owner property of the setting |
No description available in the introspection data.
Since: 1.2
getPi
Arguments
:: (HasCallStack, MonadIO m, IsSettingTun a) | |
=> a |
|
-> m Bool | Returns: the SettingTun:pi property of the setting |
No description available in the introspection data.
Since: 1.2
getVnetHdr
Arguments
:: (HasCallStack, MonadIO m, IsSettingTun a) | |
=> a |
|
-> m Bool | Returns: the |
No description available in the introspection data.
Since: 1.2
new
Arguments
:: (HasCallStack, MonadIO m) | |
=> m SettingTun | Returns: the new empty |
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 ]