Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
No description available in the introspection data.
Since: 1.14
Synopsis
- newtype DeviceWireGuard = DeviceWireGuard (ManagedPtr DeviceWireGuard)
- class (GObject o, IsDescendantOf DeviceWireGuard o) => IsDeviceWireGuard o
- toDeviceWireGuard :: (MonadIO m, IsDeviceWireGuard o) => o -> m DeviceWireGuard
- deviceWireGuardGetFwmark :: (HasCallStack, MonadIO m, IsDeviceWireGuard a) => a -> m Word32
- deviceWireGuardGetListenPort :: (HasCallStack, MonadIO m, IsDeviceWireGuard a) => a -> m Word16
- deviceWireGuardGetPublicKey :: (HasCallStack, MonadIO m, IsDeviceWireGuard a) => a -> m Bytes
- getDeviceWireGuardFwmark :: (MonadIO m, IsDeviceWireGuard o) => o -> m Word32
- getDeviceWireGuardListenPort :: (MonadIO m, IsDeviceWireGuard o) => o -> m Word32
- getDeviceWireGuardPublicKey :: (MonadIO m, IsDeviceWireGuard o) => o -> m Bytes
Exported types
newtype DeviceWireGuard Source #
Memory-managed wrapper type.
Instances
Eq DeviceWireGuard Source # | |
Defined in GI.NM.Objects.DeviceWireGuard (==) :: DeviceWireGuard -> DeviceWireGuard -> Bool # (/=) :: DeviceWireGuard -> DeviceWireGuard -> Bool # | |
GObject DeviceWireGuard Source # | |
Defined in GI.NM.Objects.DeviceWireGuard | |
ManagedPtrNewtype DeviceWireGuard Source # | |
Defined in GI.NM.Objects.DeviceWireGuard | |
TypedObject DeviceWireGuard Source # | |
Defined in GI.NM.Objects.DeviceWireGuard | |
HasParentTypes DeviceWireGuard Source # | |
Defined in GI.NM.Objects.DeviceWireGuard | |
IsGValue (Maybe DeviceWireGuard) Source # | Convert |
Defined in GI.NM.Objects.DeviceWireGuard gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe DeviceWireGuard -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe DeviceWireGuard) # | |
type ParentTypes DeviceWireGuard Source # | |
Defined in GI.NM.Objects.DeviceWireGuard |
class (GObject o, IsDescendantOf DeviceWireGuard o) => IsDeviceWireGuard o Source #
Type class for types which can be safely cast to DeviceWireGuard
, for instance with toDeviceWireGuard
.
Instances
(GObject o, IsDescendantOf DeviceWireGuard o) => IsDeviceWireGuard o Source # | |
Defined in GI.NM.Objects.DeviceWireGuard |
toDeviceWireGuard :: (MonadIO m, IsDeviceWireGuard o) => o -> m DeviceWireGuard Source #
Cast to DeviceWireGuard
, 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, 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, getFwmark, getHwAddress, getIface, getInterfaceFlags, getIp4Config, getIp6Config, getIpIface, getListenPort, getLldpNeighbors, getManaged, getMetered, getMtu, getNmPluginMissing, getPath, getPhysicalPortId, getPorts, getProduct, getProperty, getPublicKey, getQdata, getSettingType, getState, getStateReason, getTypeDescription, getUdi, getVendor.
Setters
setAutoconnect, setData, setDataFull, setManaged, setProperty.
getFwmark
deviceWireGuardGetFwmark Source #
:: (HasCallStack, MonadIO m, IsDeviceWireGuard a) | |
=> a |
|
-> m Word32 | Returns: 0 if fwmark not in use, 32-bit fwmark value otherwise |
Gets the fwmark (firewall mark) for this interface. It can be used to set routing policy for outgoing encrypted packets. See: ip-rule(8)
Since: 1.14
getListenPort
deviceWireGuardGetListenPort Source #
:: (HasCallStack, MonadIO m, IsDeviceWireGuard a) | |
=> a |
|
-> m Word16 | Returns: UDP listen port |
Gets the local UDP port this interface listens on
Since: 1.14
getPublicKey
deviceWireGuardGetPublicKey Source #
:: (HasCallStack, MonadIO m, IsDeviceWireGuard a) | |
=> a |
|
-> m Bytes | Returns: the |
Gets the public key for this interface
Since: 1.14
Properties
fwmark
Optional firewall mark - see ip-rule(8). Used when setting routing policy for outgoing encrypted packets. Set to 0 to disable the mark (default).
Since: 1.14
getDeviceWireGuardFwmark :: (MonadIO m, IsDeviceWireGuard o) => o -> m Word32 Source #
Get the value of the “fwmark
” property.
When overloading is enabled, this is equivalent to
get
deviceWireGuard #fwmark
listenPort
Local UDP listen port. Set to 0 to allow a random port to be chosen (default).
Since: 1.14
getDeviceWireGuardListenPort :: (MonadIO m, IsDeviceWireGuard o) => o -> m Word32 Source #
Get the value of the “listen-port
” property.
When overloading is enabled, this is equivalent to
get
deviceWireGuard #listenPort
publicKey
32-byte public key, derived from the current private key.
Since: 1.14
getDeviceWireGuardPublicKey :: (MonadIO m, IsDeviceWireGuard o) => o -> m Bytes Source #
Get the value of the “public-key
” property.
When overloading is enabled, this is equivalent to
get
deviceWireGuard #publicKey