pub struct HandlerCache {
pub entries: HashMap<&'static str, Arc<HandlerEntry>>,
}Expand description
Runtime cache of compiled handler registrations.
Built at startup from HandlerRegistration inventory items.
Maps request type name → handler entry (factory + call bridge).
Fields§
§entries: HashMap<&'static str, Arc<HandlerEntry>>Implementations§
Source§impl HandlerCache
impl HandlerCache
Sourcepub fn init_global()
pub fn init_global()
Initialize the global cache. Called once at host build time.
Sourcepub fn get_or_init() -> &'static HandlerCache
pub fn get_or_init() -> &'static HandlerCache
Get a reference to the global handler cache.
Must be called after init_global().
Auto Trait Implementations§
impl !RefUnwindSafe for HandlerCache
impl !UnwindSafe for HandlerCache
impl Freeze for HandlerCache
impl Send for HandlerCache
impl Sync for HandlerCache
impl Unpin for HandlerCache
impl UnsafeUnpin for HandlerCache
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