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.DeviceTun
Description
No description available in the introspection data.
Since: 1.2
Synopsis
- newtype DeviceTun = DeviceTun (ManagedPtr DeviceTun)
- class (GObject o, IsDescendantOf DeviceTun o) => IsDeviceTun o
- toDeviceTun :: (MonadIO m, IsDeviceTun o) => o -> m DeviceTun
- deviceTunGetGroup :: (HasCallStack, MonadIO m, IsDeviceTun a) => a -> m Int64
- deviceTunGetMode :: (HasCallStack, MonadIO m, IsDeviceTun a) => a -> m Text
- deviceTunGetMultiQueue :: (HasCallStack, MonadIO m, IsDeviceTun a) => a -> m Bool
- deviceTunGetNoPi :: (HasCallStack, MonadIO m, IsDeviceTun a) => a -> m Bool
- deviceTunGetOwner :: (HasCallStack, MonadIO m, IsDeviceTun a) => a -> m Int64
- deviceTunGetVnetHdr :: (HasCallStack, MonadIO m, IsDeviceTun a) => a -> m Bool
- getDeviceTunGroup :: (MonadIO m, IsDeviceTun o) => o -> m Int64
- getDeviceTunMode :: (MonadIO m, IsDeviceTun o) => o -> m Text
- getDeviceTunMultiQueue :: (MonadIO m, IsDeviceTun o) => o -> m Bool
- getDeviceTunNoPi :: (MonadIO m, IsDeviceTun o) => o -> m Bool
- getDeviceTunOwner :: (MonadIO m, IsDeviceTun o) => o -> m Int64
- getDeviceTunVnetHdr :: (MonadIO m, IsDeviceTun o) => o -> m Bool
Exported types
Memory-managed wrapper type.
Constructors
DeviceTun (ManagedPtr DeviceTun) |
Instances
Eq DeviceTun Source # | |
GObject DeviceTun Source # | |
Defined in GI.NM.Objects.DeviceTun | |
ManagedPtrNewtype DeviceTun Source # | |
Defined in GI.NM.Objects.DeviceTun Methods | |
TypedObject DeviceTun Source # | |
Defined in GI.NM.Objects.DeviceTun | |
HasParentTypes DeviceTun Source # | |
Defined in GI.NM.Objects.DeviceTun | |
IsGValue (Maybe DeviceTun) Source # | Convert |
Defined in GI.NM.Objects.DeviceTun | |
type ParentTypes DeviceTun Source # | |
Defined in GI.NM.Objects.DeviceTun |
class (GObject o, IsDescendantOf DeviceTun o) => IsDeviceTun o Source #
Type class for types which can be safely cast to DeviceTun
, for instance with toDeviceTun
.
Instances
(GObject o, IsDescendantOf DeviceTun o) => IsDeviceTun o Source # | |
Defined in GI.NM.Objects.DeviceTun |
toDeviceTun :: (MonadIO m, IsDeviceTun o) => o -> m DeviceTun Source #
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, connectionCompatible, connectionValid, delete, deleteAsync, deleteFinish, disconnect, disconnectAsync, disconnectFinish, filterConnections, forceFloating, freezeNotify, getv, isFloating, isReal, isSoftware, notify, notifyByPspec, reapply, reapplyAsync, reapplyFinish, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getActiveConnection, getAppliedConnection, getAppliedConnectionAsync, getAppliedConnectionFinish, getAutoconnect, getAvailableConnections, getCapabilities, getClient, getConnectivity, getData, getDescription, getDeviceType, getDhcp4Config, getDhcp6Config, getDriver, getDriverVersion, getFirmwareMissing, getFirmwareVersion, getGroup, getHwAddress, getIface, getInterfaceFlags, getIp4Config, getIp6Config, getIpIface, getLldpNeighbors, getManaged, getMetered, getMode, getMtu, getMultiQueue, getNmPluginMissing, getNoPi, getOwner, getPath, getPhysicalPortId, getPorts, getProduct, getProperty, getQdata, getSettingType, getState, getStateReason, getTypeDescription, getUdi, getVendor, getVnetHdr.
Setters
setAutoconnect, setData, setDataFull, setManaged, setProperty.
getGroup
Arguments
:: (HasCallStack, MonadIO m, IsDeviceTun a) | |
=> a |
|
-> m Int64 | Returns: the gid of the tunnel group, or -1 if it has no owner. |
Gets the tunnel group.
Since: 1.2
getMode
Arguments
:: (HasCallStack, MonadIO m, IsDeviceTun a) | |
=> a |
|
-> m Text | Returns: 'tun' or 'tap' |
Returns the TUN/TAP mode for the device.
Since: 1.2
getMultiQueue
deviceTunGetMultiQueue Source #
Arguments
:: (HasCallStack, MonadIO m, IsDeviceTun a) | |
=> a |
|
-> m Bool | Returns: |
Returns whether the DeviceTun
has the IFF_MULTI_QUEUE flag.
Since: 1.2
getNoPi
Arguments
:: (HasCallStack, MonadIO m, IsDeviceTun a) | |
=> a |
|
-> m Bool |
Returns whether the DeviceTun
has the IFF_NO_PI flag.
Since: 1.2
getOwner
Arguments
:: (HasCallStack, MonadIO m, IsDeviceTun a) | |
=> a |
|
-> m Int64 | Returns: the uid of the tunnel owner, or -1 if it has no owner. |
Gets the tunnel owner.
Since: 1.2
getVnetHdr
Arguments
:: (HasCallStack, MonadIO m, IsDeviceTun a) | |
=> a |
|
-> m Bool |
Returns whether the DeviceTun
has the IFF_VNET_HDR flag.
Since: 1.2
Properties
group
The gid of the tunnel group, or -1 if it has no owner.
Since: 1.2
getDeviceTunGroup :: (MonadIO m, IsDeviceTun o) => o -> m Int64 Source #
Get the value of the “group
” property.
When overloading is enabled, this is equivalent to
get
deviceTun #group
mode
The tunnel mode, either "tun" or "tap".
Since: 1.2
getDeviceTunMode :: (MonadIO m, IsDeviceTun o) => o -> m Text Source #
Get the value of the “mode
” property.
When overloading is enabled, this is equivalent to
get
deviceTun #mode
multiQueue
The tunnel's "TUN_TAP_MQ" flag; true if callers can connect to the tap device multiple times, for multiple send/receive queues.
Since: 1.2
getDeviceTunMultiQueue :: (MonadIO m, IsDeviceTun o) => o -> m Bool Source #
Get the value of the “multi-queue
” property.
When overloading is enabled, this is equivalent to
get
deviceTun #multiQueue
noPi
The tunnel's "TUN_NO_PI" flag; true if no protocol info is prepended to the tunnel packets.
Since: 1.2
getDeviceTunNoPi :: (MonadIO m, IsDeviceTun o) => o -> m Bool Source #
Get the value of the “no-pi
” property.
When overloading is enabled, this is equivalent to
get
deviceTun #noPi
owner
The uid of the tunnel owner, or -1 if it has no owner.
Since: 1.2
getDeviceTunOwner :: (MonadIO m, IsDeviceTun o) => o -> m Int64 Source #
Get the value of the “owner
” property.
When overloading is enabled, this is equivalent to
get
deviceTun #owner
vnetHdr
The tunnel's "TUN_VNET_HDR" flag; true if the tunnel packets include a virtio network header.
Since: 1.2
getDeviceTunVnetHdr :: (MonadIO m, IsDeviceTun o) => o -> m Bool Source #
Get the value of the “vnet-hdr
” property.
When overloading is enabled, this is equivalent to
get
deviceTun #vnetHdr