class

LavinMQ::MQTT::TopicRuleSegment

Inherits Reference < Object

BytesTokenIterator is deliberately a struct: passing it to the next segment copies the cursor, so a segment never disturbs its caller's position.

Class methods

compile(pattern : String) : TopicRuleSegment | Nil
Source
matches?(chain : TopicRuleSegment, topic : String, client_id : String) : Bool
Source

Instance methods

match?(it : BytesTokenIterator, client_id : String) : Bool
Source