| 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.Structs.BridgeVlan
Description
No description available in the introspection data.
Synopsis
- newtype BridgeVlan = BridgeVlan (ManagedPtr BridgeVlan)
- bridgeVlanCmp :: (HasCallStack, MonadIO m) => BridgeVlan -> BridgeVlan -> m Int32
- bridgeVlanFromStr :: (HasCallStack, MonadIO m) => Text -> m BridgeVlan
- bridgeVlanGetVidRange :: (HasCallStack, MonadIO m) => BridgeVlan -> m (Bool, Word16, Word16)
- bridgeVlanIsPvid :: (HasCallStack, MonadIO m) => BridgeVlan -> m Bool
- bridgeVlanIsSealed :: (HasCallStack, MonadIO m) => BridgeVlan -> m Bool
- bridgeVlanIsUntagged :: (HasCallStack, MonadIO m) => BridgeVlan -> m Bool
- bridgeVlanNew :: (HasCallStack, MonadIO m) => Word16 -> Word16 -> m BridgeVlan
- bridgeVlanNewClone :: (HasCallStack, MonadIO m) => BridgeVlan -> m BridgeVlan
- bridgeVlanRef :: (HasCallStack, MonadIO m) => BridgeVlan -> m BridgeVlan
- bridgeVlanSeal :: (HasCallStack, MonadIO m) => BridgeVlan -> m ()
- bridgeVlanSetPvid :: (HasCallStack, MonadIO m) => BridgeVlan -> Bool -> m ()
- bridgeVlanSetUntagged :: (HasCallStack, MonadIO m) => BridgeVlan -> Bool -> m ()
- bridgeVlanToStr :: (HasCallStack, MonadIO m) => BridgeVlan -> m Text
- bridgeVlanUnref :: (HasCallStack, MonadIO m) => BridgeVlan -> m ()
Exported types
newtype BridgeVlan Source #
Memory-managed wrapper type.
Constructors
| BridgeVlan (ManagedPtr BridgeVlan) |
Instances
| Eq BridgeVlan Source # | |
Defined in GI.NM.Structs.BridgeVlan | |
| GBoxed BridgeVlan Source # | |
Defined in GI.NM.Structs.BridgeVlan | |
| ManagedPtrNewtype BridgeVlan Source # | |
Defined in GI.NM.Structs.BridgeVlan Methods | |
| TypedObject BridgeVlan Source # | |
Defined in GI.NM.Structs.BridgeVlan | |
| HasParentTypes BridgeVlan Source # | |
Defined in GI.NM.Structs.BridgeVlan | |
| IsGValue (Maybe BridgeVlan) Source # | Convert |
Defined in GI.NM.Structs.BridgeVlan Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe BridgeVlan -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe BridgeVlan) # | |
| type ParentTypes BridgeVlan Source # | |
Defined in GI.NM.Structs.BridgeVlan | |
Methods
Click to display all available methods, including inherited ones
cmp
Arguments
| :: (HasCallStack, MonadIO m) | |
| => BridgeVlan |
|
| -> BridgeVlan |
|
| -> m Int32 | Returns: zero of the two instances are equivalent or a non-zero integer otherwise. This defines a total ordering over the VLANs. Whether a VLAN is sealed or not does not affect the comparison. |
Compare two bridge VLAN objects.
Since: 1.18
fromStr
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Text |
|
| -> m BridgeVlan |
Parses the string representation of the queueing
discipline to a NMBridgeVlan instance.
Since: 1.18
getVidRange
bridgeVlanGetVidRange Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => BridgeVlan |
|
| -> m (Bool, Word16, Word16) | Returns: |
Gets the VLAN id range.
Since: 1.18
isPvid
Arguments
| :: (HasCallStack, MonadIO m) | |
| => BridgeVlan |
|
| -> m Bool | Returns: |
Returns whether the VLAN is the PVID for the port.
Since: 1.18
isSealed
Arguments
| :: (HasCallStack, MonadIO m) | |
| => BridgeVlan |
|
| -> m Bool | Returns: whether |
No description available in the introspection data.
Since: 1.18
isUntagged
Arguments
| :: (HasCallStack, MonadIO m) | |
| => BridgeVlan |
|
| -> m Bool |
Returns whether the VLAN is untagged.
Since: 1.18
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Word16 |
|
| -> Word16 |
|
| -> m BridgeVlan | Returns: the new |
Creates a new BridgeVlan object for the given VLAN id range.
Setting vidEnd to 0 is equivalent to setting it to vidStart
and creates a single-id VLAN.
Since 1.42, ref-counting of BridgeVlan is thread-safe.
Since: 1.18
newClone
Arguments
| :: (HasCallStack, MonadIO m) | |
| => BridgeVlan |
|
| -> m BridgeVlan | Returns: a clone of |
No description available in the introspection data.
Since: 1.18
ref
Arguments
| :: (HasCallStack, MonadIO m) | |
| => BridgeVlan |
|
| -> m BridgeVlan | Returns: the input argument Since 1.42, ref-counting of |
Increases the reference count of the object.
Since: 1.18
seal
Arguments
| :: (HasCallStack, MonadIO m) | |
| => BridgeVlan |
|
| -> m () |
Seal the BridgeVlan instance. Afterwards, it is a bug
to call all functions that modify the instance (except ref/unref).
A sealed instance cannot be unsealed again, but you can create
an unsealed copy with bridgeVlanNewClone.
Since: 1.18
setPvid
Arguments
| :: (HasCallStack, MonadIO m) | |
| => BridgeVlan |
|
| -> Bool |
|
| -> m () |
Change the value of the PVID property of the VLAN. It
is invalid to set the value to True for non-single-id
VLANs.
Since: 1.18
setUntagged
bridgeVlanSetUntagged Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => BridgeVlan |
|
| -> Bool |
|
| -> m () |
Change the value of the untagged property of the VLAN.
Since: 1.18
toStr
Arguments
| :: (HasCallStack, MonadIO m) | |
| => BridgeVlan |
|
| -> m Text |
Convert a NMBridgeVlan to a string.
Since: 1.18
unref
Arguments
| :: (HasCallStack, MonadIO m) | |
| => BridgeVlan |
|
| -> m () |
Decreases the reference count of the object. If the reference count reaches zero the object will be destroyed.
Since 1.42, ref-counting of BridgeVlan is thread-safe.
Since: 1.18