pub struct MessageHashSystem;Expand description
Message hash system for efficient message lookup
Implementations§
Source§impl MessageHashSystem
impl MessageHashSystem
Sourcepub fn hash_message_key(
category: MessageCategory,
message_type: MessageType,
variant: u8,
) -> u64
pub fn hash_message_key( category: MessageCategory, message_type: MessageType, variant: u8, ) -> u64
Get message hash for efficient lookup
Sourcepub fn get_message_by_hash(_hash: u64) -> Option<&'static MessageTemplate>
pub fn get_message_by_hash(_hash: u64) -> Option<&'static MessageTemplate>
Get message by hash (for performance-critical paths)
Sourcepub fn validate_registry() -> bool
pub fn validate_registry() -> bool
Validate message registry integrity
Auto Trait Implementations§
impl Freeze for MessageHashSystem
impl RefUnwindSafe for MessageHashSystem
impl Send for MessageHashSystem
impl Sync for MessageHashSystem
impl Unpin for MessageHashSystem
impl UnwindSafe for MessageHashSystem
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more