pub type Str = StrInner<Bytes>;Expand description
The owned string of the message path: a destination name, a header key.
A Bytes that is valid UTF-8, so it reads as a str, clones by reference count and can be
taken as a slice of a buffer the broker already holds. Str::from_static("orders") costs
nothing at all; String moves in without a copy; &str copies once.
An immutable variant of Bytes-backed string.
The methods and their documentation are on StrInner, but users are mostly expected to use this and the StrMut aliases.
Aliased Typeยง
pub struct Str(/* private fields */);