Locality enum
Restricts which peers an operation reaches, or accepts traffic from.
Mirrors zenoh-c's z_locality_t (zenoh_commons.h:68-94), whose wire
values are assigned explicitly by canon: ANY = 0, SESSION_LOCAL = 1,
REMOTE = 2. The value getter carries those numbers directly rather
than deriving them from Dart declaration order.
Canon's default on every field that takes a locality is any
(z_locality_default()), so omitting the parameter — or passing null —
leaves canon to supply it.
Two directions of the same idea share this type:
allowedDestinationon a send operation limits who receives it.allowedOriginon a declaration limits whose traffic it accepts.
sessionLocal means "within the declaring session only" — not "within this process" and not "within this host". Two sessions in one Dart process are remote to each other.
This enum is send-only: canon exposes no accessor that returns a locality,
so there is deliberately no fromWire decoder.
Values
- any → const Locality
-
Reach, or accept from, both same-session and remote peers.
Z_LOCALITY_ANY = 0, and canon's default (z_locality_default()).const Locality(0) - sessionLocal → const Locality
-
Reach, or accept from, only peers within the declaring session.
Z_LOCALITY_SESSION_LOCAL = 1.const Locality(1) - remote → const Locality
-
Reach, or accept from, only peers outside the declaring session.
Z_LOCALITY_REMOTE = 2.const Locality(2)
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