Struct JitRouter
pub struct JitRouter { /* private fields */ }Expand description
JIT-compiled routing paths for frequently used topics
Dynamically generates optimized machine code for high-frequency routing paths to eliminate interpretation overhead.
Implementations§
§impl JitRouter
impl JitRouter
pub fn track_usage(&mut self, topic: &str) -> bool
pub fn track_usage(&mut self, topic: &str) -> bool
Track usage and potentially compile optimized path
pub fn is_compiled(&self, topic: &str) -> bool
pub fn is_compiled(&self, topic: &str) -> bool
Check if a route is already compiled
pub fn compilation_statistics(&self) -> JitStatistics
pub fn compilation_statistics(&self) -> JitStatistics
Get compilation statistics
Auto Trait Implementations§
impl !Freeze for JitRouter
impl RefUnwindSafe for JitRouter
impl Send for JitRouter
impl Sync for JitRouter
impl Unpin for JitRouter
impl UnwindSafe for JitRouter
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