pub struct CommId(pub Uuid);Expand description
Universal UUID-based identifier used across the comm system.
Replaces numeric u64 IDs with globally unique identifiers while
maintaining backward compatibility via from_u64 / to_u64.
Tuple Fields§
§0: UuidImplementations§
Source§impl CommId
impl CommId
Sourcepub fn from_u64(val: u64) -> Self
pub fn from_u64(val: u64) -> Self
Deterministic conversion from a legacy u64 ID.
Embeds the u64 in the lower 8 bytes of a UUID with version 8 (custom) and RFC 4122 variant bits set.
Trait Implementations§
impl Copy for CommId
Source§impl<'de> Deserialize<'de> for CommId
impl<'de> Deserialize<'de> for CommId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CommId
impl StructuralPartialEq for CommId
Auto Trait Implementations§
impl Freeze for CommId
impl RefUnwindSafe for CommId
impl Send for CommId
impl Sync for CommId
impl Unpin for CommId
impl UnsafeUnpin for CommId
impl UnwindSafe for CommId
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