pub struct WireExpr<'a> {
    pub scope: ExprId,
    pub suffix: Cow<'a, str>,
}
Expand description

A zenoh resource is represented by a pair composed by a key and a value, such as, (/car/telemetry/speed, 320). A resource key is an arbitrary array of characters, with the exclusion of the symbols *, **, ?, [, ], and #, which have special meaning in the context of zenoh.

A key including any number of the wildcard symbols, * and **, such as, /car/telemetry/*, is called a key expression as it denotes a set of keys. The wildcard character * expands to an arbitrary string not including zenoh’s reserved characters and the / character, while the ** expands to strings that may also include the / character.

Finally, it is worth mentioning that for time and space efficiency matters, zenoh will automatically map key expressions to small integers. The mapping is automatic, but it can be triggered excplicily by with zenoh::Session::declare_keyexpr().

Fields

scope: ExprIdsuffix: Cow<'a, str>

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.