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.SettingBridgePort
Description
Bridge Port Settings
Synopsis
- newtype SettingBridgePort = SettingBridgePort (ManagedPtr SettingBridgePort)
- class (GObject o, IsDescendantOf SettingBridgePort o) => IsSettingBridgePort o
- toSettingBridgePort :: (MonadIO m, IsSettingBridgePort o) => o -> m SettingBridgePort
- settingBridgePortAddVlan :: (HasCallStack, MonadIO m, IsSettingBridgePort a) => a -> BridgeVlan -> m ()
- settingBridgePortClearVlans :: (HasCallStack, MonadIO m, IsSettingBridgePort a) => a -> m ()
- settingBridgePortGetHairpinMode :: (HasCallStack, MonadIO m, IsSettingBridgePort a) => a -> m Bool
- settingBridgePortGetNumVlans :: (HasCallStack, MonadIO m, IsSettingBridgePort a) => a -> m Word32
- settingBridgePortGetPathCost :: (HasCallStack, MonadIO m, IsSettingBridgePort a) => a -> m Word16
- settingBridgePortGetPriority :: (HasCallStack, MonadIO m, IsSettingBridgePort a) => a -> m Word16
- settingBridgePortGetVlan :: (HasCallStack, MonadIO m, IsSettingBridgePort a) => a -> Word32 -> m BridgeVlan
- settingBridgePortNew :: (HasCallStack, MonadIO m) => m SettingBridgePort
- settingBridgePortRemoveVlan :: (HasCallStack, MonadIO m, IsSettingBridgePort a) => a -> Word32 -> m ()
- settingBridgePortRemoveVlanByVid :: (HasCallStack, MonadIO m, IsSettingBridgePort a) => a -> Word16 -> Word16 -> m Bool
- constructSettingBridgePortHairpinMode :: (IsSettingBridgePort o, MonadIO m) => Bool -> m (GValueConstruct o)
- getSettingBridgePortHairpinMode :: (MonadIO m, IsSettingBridgePort o) => o -> m Bool
- setSettingBridgePortHairpinMode :: (MonadIO m, IsSettingBridgePort o) => o -> Bool -> m ()
- constructSettingBridgePortPathCost :: (IsSettingBridgePort o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getSettingBridgePortPathCost :: (MonadIO m, IsSettingBridgePort o) => o -> m Word32
- setSettingBridgePortPathCost :: (MonadIO m, IsSettingBridgePort o) => o -> Word32 -> m ()
- constructSettingBridgePortPriority :: (IsSettingBridgePort o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getSettingBridgePortPriority :: (MonadIO m, IsSettingBridgePort o) => o -> m Word32
- setSettingBridgePortPriority :: (MonadIO m, IsSettingBridgePort o) => o -> Word32 -> m ()
Exported types
newtype SettingBridgePort Source #
Memory-managed wrapper type.
Constructors
SettingBridgePort (ManagedPtr SettingBridgePort) |
Instances
class (GObject o, IsDescendantOf SettingBridgePort o) => IsSettingBridgePort o Source #
Type class for types which can be safely cast to SettingBridgePort
, for instance with toSettingBridgePort
.
Instances
(GObject o, IsDescendantOf SettingBridgePort o) => IsSettingBridgePort o Source # | |
Defined in GI.NM.Objects.SettingBridgePort |
toSettingBridgePort :: (MonadIO m, IsSettingBridgePort o) => o -> m SettingBridgePort Source #
Cast to SettingBridgePort
, 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
addVlan, bindProperty, bindPropertyFull, clearVlans, compare, diff, duplicate, enumerateValues, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, optionClearByName, optionGet, optionGetAllNames, optionGetBoolean, optionGetUint32, optionSet, optionSetBoolean, optionSetUint32, ref, refSink, removeVlan, removeVlanByVid, runDispose, stealData, stealQdata, thawNotify, toString, unref, verify, verifySecrets, watchClosure.
Getters
getData, getDbusPropertyType, getHairpinMode, getName, getNumVlans, getPathCost, getPriority, getProperty, getQdata, getSecretFlags, getVlan.
Setters
addVlan
settingBridgePortAddVlan Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingBridgePort a) | |
=> a |
|
-> BridgeVlan |
|
-> m () |
Appends a new vlan and associated information to the setting. The given vlan gets sealed and a reference to it is added.
Since: 1.18
clearVlans
settingBridgePortClearVlans Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingBridgePort a) | |
=> a |
|
-> m () |
Removes all configured VLANs.
Since: 1.18
getHairpinMode
settingBridgePortGetHairpinMode Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingBridgePort a) | |
=> a |
|
-> m Bool | Returns: the SettingBridgePort:hairpinMode property of the setting |
No description available in the introspection data.
getNumVlans
settingBridgePortGetNumVlans Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingBridgePort a) | |
=> a |
|
-> m Word32 | Returns: the number of VLANs |
No description available in the introspection data.
Since: 1.18
getPathCost
settingBridgePortGetPathCost Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingBridgePort a) | |
=> a |
|
-> m Word16 | Returns: the SettingBridgePort:pathCost property of the setting |
No description available in the introspection data.
getPriority
settingBridgePortGetPriority Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingBridgePort a) | |
=> a |
|
-> m Word16 | Returns: the SettingBridgePort:priority property of the setting |
No description available in the introspection data.
getVlan
settingBridgePortGetVlan Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingBridgePort a) | |
=> a |
|
-> Word32 |
|
-> m BridgeVlan | Returns: the VLAN at index |
No description available in the introspection data.
Since: 1.18
new
Arguments
:: (HasCallStack, MonadIO m) | |
=> m SettingBridgePort | Returns: the new empty |
Creates a new SettingBridgePort
object with default values.
removeVlan
settingBridgePortRemoveVlan Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingBridgePort a) | |
=> a |
|
-> Word32 |
|
-> m () |
Removes the vlan at index idx
.
Since: 1.18
removeVlanByVid
settingBridgePortRemoveVlanByVid Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingBridgePort a) | |
=> a |
|
-> Word16 |
|
-> Word16 |
|
-> m Bool | Returns: |
Remove the VLAN with range vidStart
to vidEnd
.
If vidEnd
is zero, it is assumed to be equal to vidStart
and so the single-id VLAN with id vidStart
is removed.
Since: 1.18
Properties
hairpinMode
Enables or disables "hairpin mode" for the port, which allows frames to be sent back out through the port the frame was received on.
constructSettingBridgePortHairpinMode :: (IsSettingBridgePort o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “hairpin-mode
” property. This is rarely needed directly, but it is used by new
.
getSettingBridgePortHairpinMode :: (MonadIO m, IsSettingBridgePort o) => o -> m Bool Source #
Get the value of the “hairpin-mode
” property.
When overloading is enabled, this is equivalent to
get
settingBridgePort #hairpinMode
setSettingBridgePortHairpinMode :: (MonadIO m, IsSettingBridgePort o) => o -> Bool -> m () Source #
Set the value of the “hairpin-mode
” property.
When overloading is enabled, this is equivalent to
set
settingBridgePort [ #hairpinMode:=
value ]
pathCost
The Spanning Tree Protocol (STP) port cost for destinations via this port.
constructSettingBridgePortPathCost :: (IsSettingBridgePort o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “path-cost
” property. This is rarely needed directly, but it is used by new
.
getSettingBridgePortPathCost :: (MonadIO m, IsSettingBridgePort o) => o -> m Word32 Source #
Get the value of the “path-cost
” property.
When overloading is enabled, this is equivalent to
get
settingBridgePort #pathCost
setSettingBridgePortPathCost :: (MonadIO m, IsSettingBridgePort o) => o -> Word32 -> m () Source #
Set the value of the “path-cost
” property.
When overloading is enabled, this is equivalent to
set
settingBridgePort [ #pathCost:=
value ]
priority
The Spanning Tree Protocol (STP) priority of this bridge port.
constructSettingBridgePortPriority :: (IsSettingBridgePort o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “priority
” property. This is rarely needed directly, but it is used by new
.
getSettingBridgePortPriority :: (MonadIO m, IsSettingBridgePort o) => o -> m Word32 Source #
Get the value of the “priority
” property.
When overloading is enabled, this is equivalent to
get
settingBridgePort #priority
setSettingBridgePortPriority :: (MonadIO m, IsSettingBridgePort o) => o -> Word32 -> m () Source #
Set the value of the “priority
” property.
When overloading is enabled, this is equivalent to
set
settingBridgePort [ #priority:=
value ]