pub struct ProtocolIndex {
pub component_index: HashMap<String, u32>,
pub route_cache: CompiledRouteCache,
/* private fields */
}Expand description
Pre-computed index for a protocol, caching expensive lookups.
Both the component bit-index map and the compiled route template cache are deterministic for a given protocol. Building them once avoids redundant work on every request.
Fields§
§component_index: HashMap<String, u32>Component name → bit index for inventory tracking.
route_cache: CompiledRouteCacheCompiled route template patterns (lazily populated on first match).
Implementations§
Source§impl ProtocolIndex
impl ProtocolIndex
Sourcepub fn new(protocol: &WebUIProtocol) -> Self
pub fn new(protocol: &WebUIProtocol) -> Self
Build a protocol index from a compiled protocol.
Auto Trait Implementations§
impl Freeze for ProtocolIndex
impl RefUnwindSafe for ProtocolIndex
impl Send for ProtocolIndex
impl Sync for ProtocolIndex
impl Unpin for ProtocolIndex
impl UnsafeUnpin for ProtocolIndex
impl UnwindSafe for ProtocolIndex
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