Skip to main content

Code

Enum Code 

Source
pub enum Code {
Show 58 variants Toml, UnknownField, MissingField, BadValue, RouterAttach, SelectInterfaces, UnknownProtocol, SharedProtocol, BatchOverLease, FarOfTwoFaces, ServiceUnknown, ContractUnknown, TemplatedExposure, CarveOutOverlap, IntervalOverHorizon, ExposureDisagrees, FrameOverInterval, FrameOverBatch, HistoryOnFrame, OwnerHeartbeatDenied, WindowUnderOutage, ZkNotDenied, WildcardDownsampling, IntersectingDownsampling, BlockDisabled, NearSubjectOnFace, FaceSubjectMissing, FaceSubjectBeyondFace, FaceSubjectMisplaced, NarrowedTooFar, TransportMissing, MovedField, WaitUnderLease, KeepAliveFlaps, SequenceWindow, OpenUnderHandshake, ReplyTimeoutShort, NoArq, TransportDiffers, PeerDiffers, FaceTimestamping, CatalogMismatch, PackedRequired, NotPacked, FrameUnknown, EventUnknown, FrameUnlisted, KeyframeUnreachable, HorizonUnderFace, BlockOverBatch, KeepAliveNotSuppressed, TimedDownsampled, CatalogMissing, DeviceListed, PresenceRequired, EpochOnDevice, NearOpensUser, NearOpensUnauthenticated,
}
Expand description

The closed vocabulary of findings.

Variants§

§

Toml

The file is not TOML 1.0 (§2.1).

§

UnknownField

A key the format does not define (§2.1).

§

MissingField

A required key absent (§2.1).

§

BadValue

A value of the wrong type or outside its range (§2.1).

§

RouterAttach

attach = "router" (§2.5).

§

SelectInterfaces

select.interfaces (§2.14).

§

UnknownProtocol

A link protocol zenoh 1.10.1 does not name (§2.1).

§

SharedProtocol

Two faces with a common link protocol (§2.14).

§

BatchOverLease

A batch over a third of the lease (§2.10).

§

FarOfTwoFaces

Two or more faces naming one far principal, whose policy then carries every one of their plans’ denies on each of them (§2.1, §2.4, 0.7, F-125).

§

ServiceUnknown

A listed service the deployment names no interfaces for (§2.3).

§

ContractUnknown

An interface whose contract is not given (§2.3).

§

TemplatedExposure

An exposed stream with a parameter, denied (§2.8).

§

CarveOutOverlap

An exposed resource a deny must include (§2.7).

§

IntervalOverHorizon

A crossing stream whose horizon is below twice the interval (§2.12).

§

ExposureDisagrees

Revisions of a listed interface that disagree on a resource’s exposure, one link and another not: it does not cross (§2.3, 0.3).

§

FrameOverInterval

A crossing frame resource whose interval is shorter than the face’s interval_s: never downsampled, it crosses at its own cadence (§2.8).

§

FrameOverBatch

A crossing frame resource whose largest frame, with its allowance, does not fit the face’s batch: it is fragmented, and lost whole (§2.8).

§

HistoryOnFrame

A crossing frame resource that declares history: every put pays the advanced publisher’s source info across the face, and its history stays home (§2.8).

§

OwnerHeartbeatDenied

A listed service whose owner heartbeats the deployment turns on, implementing an interface whose heartbeat crosses a link.v1 face: no owner heartbeat crosses one, so its far readers may hear no confirmation (§2.3, §2.9; #1145).

§

WindowUnderOutage

A listed owner’s tombstone window below the outage (§2.11).

§

ZkNotDenied

A block whose denies leave a pair of @zk open (§2.15).

§

WildcardDownsampling

A downsampling rule that is not one concrete key (§2.15).

§

IntersectingDownsampling

Two downsampling rules that intersect (§2.15).

§

BlockDisabled

A block whose access control is not enabled: zenoh enforces none of its rules (§2.15, 0.7, F-124).

§

NearSubjectOnFace

A subject on the face bound to another principal than the face’s far one, whatever else it names (§2.4, §2.15, 0.3; widened in 0.4, F-120).

§

FaceSubjectMissing

Under allow, a link protocol of the face that no face subject naming no interface and no zid selects (§2.4, §2.15, 0.3).

§

FaceSubjectBeyondFace

A face subject that also selects sessions off the face (§2.4, §2.15, 0.4, F-120).

§

FaceSubjectMisplaced

A face subject not listed in exactly the far principal’s policies (§2.4, §2.15, 0.4, F-120).

§

NarrowedTooFar

Under allow, a name the block binds whose session over a link protocol it is not kept off matches no subject (§2.4, §2.15, 0.4, F-120).

§

TransportMissing

A link.v2 policy with no [transport] (v2 §2.1).

§

MovedField

A face’s lease_ms or batch_bytes in a link.v2 policy: they are [transport]’s (v2 §2.1).

§

WaitUnderLease

wait_before_close below the lease, in a policy or a router’s configuration (v2 §2.16, §2.19).

§

KeepAliveFlaps

A face’s loss makes more than one false close a day likely (v2 §2.16).

§

SequenceWindow

One lease can carry the sequence window in full batches (v2 §2.16).

§

OpenUnderHandshake

An open or accept timeout below twice the handshake’s air (v2 §2.16).

§

ReplyTimeoutShort

A face’s reply timeout below 16 full batches’ air (v2 §2.1).

§

NoArq

A face whose medium repairs no lost frame (v2 §2.1).

§

TransportDiffers

A router’s configuration runs a transport key other than the policy’s (v2 §2.19).

§

PeerDiffers

The far end’s lease or keep-alive is not the near router’s (v2 §2.19).

§

FaceTimestamping

A router’s configuration stamps the puts it routes onto the face (v2 §2.18, §2.19; core §8.2).

§

CatalogMismatch

The catalog the far side holds is not the policy’s (v2 §2.19).

§

PackedRequired

A contract that lists link.v2 exposes a resource whose type is not packed (v2 §2.17).

§

NotPacked

A crossing resource of a contract that does not list link.v2, whose type is not packed (v2 §2.3, §2.17).

§

FrameUnknown

A face’s frames entry that names no frame resource of a listed interface (v2 §2.7).

§

EventUnknown

A face’s events entry that names no event resource of a listed interface (v2 §2.7). An event that is listed but not exposed is denied, never this.

§

FrameUnlisted

An exposed frame resource of a listed interface that a face’s frames leaves out, and that crosses no face of the policy (v2 §2.7).

§

KeyframeUnreachable

A listed frame whose keyframe_s its contract’s keyframe_every cannot reach at the face’s every_s (v2 §2.7).

§

HorizonUnderFace

A crossing heartbeat, owner heartbeat or frame resource whose horizon is below the face’s horizon_s (v2 §2.9, §2.12).

§

BlockOverBatch

A crossing block resource whose longest put, with its allowance, does not fit the batch, or a crossing owner heartbeat’s, at freshness.v2/stream/heartbeats/link (v2 §2.16).

§

KeepAliveNotSuppressed

A face whose shortest crossing cadence is the keep-alive interval or above it (v2 §2.16).

§

TimedDownsampled

A timed stream, denied rather than downsampled (v2 §2.8).

§

CatalogMissing

A revision of an interface that crosses the face, which the deployment’s catalog does not list (v2 §2.18).

§

DeviceListed

A device the policy lists elsewhere: among services, or in another face’s devices (v2 §2.1, §2.5).

§

PresenceRequired

A device that implements archive.v1, or an interface a revision given of which uses redundancy.v1 or redundancy.v2: each needs presence on its peers’ side of the face (v2 §2.5, 0.29; core §8.1, redundancy.v2 §2.13).

§

EpochOnDevice

On a device face, a template of a device’s interface that declares epoch: its member tokens cross the face at each transport, and the face denies them (v2 §2.5).

§

NearOpensUser

A face the near router opens (opens = "near") whose far principal the deployment binds by a user name: zenoh’s usrpwd binds a user name only to a link the router accepted (v2 §2.5).

§

NearOpensUnauthenticated

Under allow, a face the near router opens whose far principal is a user name: planned, and nobody across it is authenticated (v2 §2.5).

Implementations§

Source§

impl Code

Source

pub fn as_str(self) -> &'static str

The fixture’s token.

Source

pub fn severity(self) -> Severity

Its severity, fixed per code.

Trait Implementations§

Source§

impl Clone for Code

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Code

Source§

impl Debug for Code

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Code

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Code

Source§

impl Hash for Code

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Code

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Code

Source§

fn serialize<S: Serializer>(&self, s: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Code

Auto Trait Implementations§

§

impl Forget for Code

§

impl Freeze for Code

§

impl Move for Code

§

impl RefUnwindSafe for Code

§

impl Send for Code

§

impl Sync for Code

§

impl Unpin for Code

§

impl UnsafeUnpin for Code

§

impl UnwindSafe for Code

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AsNode<T> for T

Source§

fn as_node(&self) -> &T

Source§

impl<T> AsNodeMut<T> for T

Source§

fn as_node_mut(&mut self) -> &mut T

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.