LayoutErrorKind enum

Canon's layout-error vocabulary, with canon's own wire values.

The C enum assigns no explicit initialisers, so C's implicit numbering gives 0/1. Those numbers are written out here rather than taken from declaration order.

Inheritance
Available extensions

Values

incorrectLayoutArgs → const LayoutErrorKind

"Layout arguments are incorrect." — canon's own words.

The measured outcome of size: 0, and of an alignment pow canon reads as nonsensical rather than merely unsupported. Note what this is not: a zero-size request is a layout error, not the pool exhaustion an earlier nullable rendering of this API conflated it with.

const LayoutErrorKind(0)
providerIncompatibleLayout → const LayoutErrorKind

"Layout incompatible with provider." — canon's own words.

The provider accepts only its own construction layout. On the default provider this binding constructs, that means any alignment stricter than pow: 0 lands here — the ceiling is documented on ShmProvider.alloc's alignment parameter, and lifting it needs a layout-capable constructor, which is a carved capability.

const LayoutErrorKind(1)
unknown → const LayoutErrorKind

A wire value outside canon's domain.

A binding-labelled sentinel, not a canon member — canon designates no default for this enum. See AllocErrorKind.unknown, which carries the same reasoning and the same -1.

const LayoutErrorKind(-1)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
The zenoh-c wire value. Explicit; never derived from declaration order.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromWire(int raw) LayoutErrorKind
Decodes a raw z_layout_error_t value.

Constants

values → const List<LayoutErrorKind>
A constant List of the values in this enum, in order of their declaration.