Struct RouteCacheEntry
pub struct RouteCacheEntry {
pub pattern: TopicPattern,
pub priority: u32,
pub handler_id: u64,
pub last_access: Instant,
}Expand description
Cache entry storing handlers for a specific topic
Fields§
§pattern: TopicPatternTopic pattern that was matched
priority: u32Handler priority
handler_id: u64Handler identifier (for lookup)
last_access: InstantLast access timestamp (for LRU)
Trait Implementations§
§impl Clone for RouteCacheEntry
impl Clone for RouteCacheEntry
§fn clone(&self) -> RouteCacheEntry
fn clone(&self) -> RouteCacheEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RouteCacheEntry
impl RefUnwindSafe for RouteCacheEntry
impl Send for RouteCacheEntry
impl Sync for RouteCacheEntry
impl Unpin for RouteCacheEntry
impl UnwindSafe for RouteCacheEntry
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