Enum dpdk_unix::ListParseError[]

pub enum ListParseError {
    IoError(Error),
    ContainsAnEmptyIndexOrRange,
    CouldNotParseIndex(&'static strStringParseIntError),
    ContainsMisSortedIndices(u16u16),
    RangeIsNotAnAscendingRangeWithMoreThanOneElement(u16u16),
}

List parse error.

Variants

An IO error.

Contains an empty index or range.

Could not parse index.

Contains mis-sorted indices.

Range is not an ascending range with more than one element.

Methods

impl ListParseError
[src]

Parses a Linux list string used for cpu sets, core masks and NUMA nodes such as "2,4-31,32-63" and "1,2,10-20,100-2000:2/25" (see https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html for an awful description of this mad syntax).

Returns a BTreeSet with the zero-based indices found in the string. For example, "2,4-31,32-63" would return a set with all values between 0 to 63 except 0, 1 and 3.

Trait Implementations

impl Debug for ListParseError
[src]

Formats the value using the given formatter. Read more

impl Display for ListParseError

Formats the value using the given formatter. Read more

impl Error for ListParseError

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

impl From<Error> for ListParseError

Performs the conversion.

Auto Trait Implementations