pub struct TopicPath {
pub path: ArcStr,
pub segments: Vec<Substr>,
}Expand description
A concrete MQTT topic, split into its /-delimited segments.
The original topic string and the segment slices share the same backing
ArcStr allocation, so cloning and slicing are cheap.
Fields§
§path: ArcStrThe full topic string.
segments: Vec<Substr>The topic split on /; each segment is a slice into path.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TopicPath
impl RefUnwindSafe for TopicPath
impl Send for TopicPath
impl Sync for TopicPath
impl Unpin for TopicPath
impl UnsafeUnpin for TopicPath
impl UnwindSafe for TopicPath
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more