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.SettingMacvlan
Description
MAC VLAN Settings
Synopsis
- newtype SettingMacvlan = SettingMacvlan (ManagedPtr SettingMacvlan)
- class (GObject o, IsDescendantOf SettingMacvlan o) => IsSettingMacvlan o
- toSettingMacvlan :: (MonadIO m, IsSettingMacvlan o) => o -> m SettingMacvlan
- settingMacvlanGetMode :: (HasCallStack, MonadIO m, IsSettingMacvlan a) => a -> m SettingMacvlanMode
- settingMacvlanGetParent :: (HasCallStack, MonadIO m, IsSettingMacvlan a) => a -> m Text
- settingMacvlanGetPromiscuous :: (HasCallStack, MonadIO m, IsSettingMacvlan a) => a -> m Bool
- settingMacvlanGetTap :: (HasCallStack, MonadIO m, IsSettingMacvlan a) => a -> m Bool
- settingMacvlanNew :: (HasCallStack, MonadIO m) => m SettingMacvlan
- constructSettingMacvlanMode :: (IsSettingMacvlan o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getSettingMacvlanMode :: (MonadIO m, IsSettingMacvlan o) => o -> m Word32
- setSettingMacvlanMode :: (MonadIO m, IsSettingMacvlan o) => o -> Word32 -> m ()
- clearSettingMacvlanParent :: (MonadIO m, IsSettingMacvlan o) => o -> m ()
- constructSettingMacvlanParent :: (IsSettingMacvlan o, MonadIO m) => Text -> m (GValueConstruct o)
- getSettingMacvlanParent :: (MonadIO m, IsSettingMacvlan o) => o -> m Text
- setSettingMacvlanParent :: (MonadIO m, IsSettingMacvlan o) => o -> Text -> m ()
- constructSettingMacvlanPromiscuous :: (IsSettingMacvlan o, MonadIO m) => Bool -> m (GValueConstruct o)
- getSettingMacvlanPromiscuous :: (MonadIO m, IsSettingMacvlan o) => o -> m Bool
- setSettingMacvlanPromiscuous :: (MonadIO m, IsSettingMacvlan o) => o -> Bool -> m ()
- constructSettingMacvlanTap :: (IsSettingMacvlan o, MonadIO m) => Bool -> m (GValueConstruct o)
- getSettingMacvlanTap :: (MonadIO m, IsSettingMacvlan o) => o -> m Bool
- setSettingMacvlanTap :: (MonadIO m, IsSettingMacvlan o) => o -> Bool -> m ()
Exported types
newtype SettingMacvlan Source #
Memory-managed wrapper type.
Constructors
SettingMacvlan (ManagedPtr SettingMacvlan) |
Instances
Eq SettingMacvlan Source # | |
Defined in GI.NM.Objects.SettingMacvlan Methods (==) :: SettingMacvlan -> SettingMacvlan -> Bool # (/=) :: SettingMacvlan -> SettingMacvlan -> Bool # | |
GObject SettingMacvlan Source # | |
Defined in GI.NM.Objects.SettingMacvlan | |
ManagedPtrNewtype SettingMacvlan Source # | |
Defined in GI.NM.Objects.SettingMacvlan Methods toManagedPtr :: SettingMacvlan -> ManagedPtr SettingMacvlan # | |
TypedObject SettingMacvlan Source # | |
Defined in GI.NM.Objects.SettingMacvlan | |
HasParentTypes SettingMacvlan Source # | |
Defined in GI.NM.Objects.SettingMacvlan | |
IsGValue (Maybe SettingMacvlan) Source # | Convert |
Defined in GI.NM.Objects.SettingMacvlan Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe SettingMacvlan -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe SettingMacvlan) # | |
type ParentTypes SettingMacvlan Source # | |
Defined in GI.NM.Objects.SettingMacvlan |
class (GObject o, IsDescendantOf SettingMacvlan o) => IsSettingMacvlan o Source #
Type class for types which can be safely cast to SettingMacvlan
, for instance with toSettingMacvlan
.
Instances
(GObject o, IsDescendantOf SettingMacvlan o) => IsSettingMacvlan o Source # | |
Defined in GI.NM.Objects.SettingMacvlan |
toSettingMacvlan :: (MonadIO m, IsSettingMacvlan o) => o -> m SettingMacvlan Source #
Cast to SettingMacvlan
, 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, getMode, getName, getParent, getPromiscuous, getProperty, getQdata, getSecretFlags, getTap.
Setters
getMode
settingMacvlanGetMode Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingMacvlan a) | |
=> a |
|
-> m SettingMacvlanMode | Returns: the SettingMacvlan:mode property of the setting |
No description available in the introspection data.
Since: 1.2
getParent
settingMacvlanGetParent Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingMacvlan a) | |
=> a |
|
-> m Text | Returns: the SettingMacvlan:parent property of the setting |
No description available in the introspection data.
Since: 1.2
getPromiscuous
settingMacvlanGetPromiscuous Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingMacvlan a) | |
=> a |
|
-> m Bool | Returns: the SettingMacvlan:promiscuous property of the setting |
No description available in the introspection data.
Since: 1.2
getTap
Arguments
:: (HasCallStack, MonadIO m, IsSettingMacvlan a) | |
=> a |
|
-> m Bool | Returns: the SettingMacvlan:tap property of the setting |
No description available in the introspection data.
Since: 1.2
new
Arguments
:: (HasCallStack, MonadIO m) | |
=> m SettingMacvlan | Returns: the new empty |
Creates a new SettingMacvlan
object with default values.
Since: 1.2
Properties
mode
The macvlan mode, which specifies the communication mechanism between multiple macvlans on the same lower device.
Since: 1.2
constructSettingMacvlanMode :: (IsSettingMacvlan 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
.
getSettingMacvlanMode :: (MonadIO m, IsSettingMacvlan o) => o -> m Word32 Source #
Get the value of the “mode
” property.
When overloading is enabled, this is equivalent to
get
settingMacvlan #mode
setSettingMacvlanMode :: (MonadIO m, IsSettingMacvlan o) => o -> Word32 -> m () Source #
Set the value of the “mode
” property.
When overloading is enabled, this is equivalent to
set
settingMacvlan [ #mode:=
value ]
parent
If given, specifies the parent interface name or parent connection UUID
from which this MAC-VLAN interface should be created. If this property is
not specified, the connection must contain an SettingWired
setting
with a SettingWired:macAddress property.
Since: 1.2
clearSettingMacvlanParent :: (MonadIO m, IsSettingMacvlan o) => o -> m () Source #
Set the value of the “parent
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#parent
constructSettingMacvlanParent :: (IsSettingMacvlan o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “parent
” property. This is rarely needed directly, but it is used by new
.
getSettingMacvlanParent :: (MonadIO m, IsSettingMacvlan o) => o -> m Text Source #
Get the value of the “parent
” property.
When overloading is enabled, this is equivalent to
get
settingMacvlan #parent
setSettingMacvlanParent :: (MonadIO m, IsSettingMacvlan o) => o -> Text -> m () Source #
Set the value of the “parent
” property.
When overloading is enabled, this is equivalent to
set
settingMacvlan [ #parent:=
value ]
promiscuous
Whether the interface should be put in promiscuous mode.
Since: 1.2
constructSettingMacvlanPromiscuous :: (IsSettingMacvlan o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “promiscuous
” property. This is rarely needed directly, but it is used by new
.
getSettingMacvlanPromiscuous :: (MonadIO m, IsSettingMacvlan o) => o -> m Bool Source #
Get the value of the “promiscuous
” property.
When overloading is enabled, this is equivalent to
get
settingMacvlan #promiscuous
setSettingMacvlanPromiscuous :: (MonadIO m, IsSettingMacvlan o) => o -> Bool -> m () Source #
Set the value of the “promiscuous
” property.
When overloading is enabled, this is equivalent to
set
settingMacvlan [ #promiscuous:=
value ]
tap
Whether the interface should be a MACVTAP.
Since: 1.2
constructSettingMacvlanTap :: (IsSettingMacvlan o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “tap
” property. This is rarely needed directly, but it is used by new
.
getSettingMacvlanTap :: (MonadIO m, IsSettingMacvlan o) => o -> m Bool Source #
Get the value of the “tap
” property.
When overloading is enabled, this is equivalent to
get
settingMacvlan #tap
setSettingMacvlanTap :: (MonadIO m, IsSettingMacvlan o) => o -> Bool -> m () Source #
Set the value of the “tap
” property.
When overloading is enabled, this is equivalent to
set
settingMacvlan [ #tap:=
value ]