[][src]Module neli::utils

A module containing utilities for working with constructs like bitflags and other low level operations.

Design decisions

Some of the less documented aspects of interacting with netlink are handled internally in the types so that the user does not have to be aware of them.

Structs

BitRepError

Represents an error for operations on bitmasks if the integer that is being used to store the bitmask cannot represent the result of requested operation.

U32BitFlag

Struct representing a single bit flag

U32Bitmask

Struct for handling u32 bitmask operations

Functions

serialize

Convenience method for allocating a buffer for serialization.