pub struct RecordId(/* private fields */);Expand description
Internal record identifier (index into storage Vec)
This is the hot-path identifier used for O(1) lookups during produce/consume operations. Not exposed to external APIs.
§Why u32?
- 4 billion records is more than enough for any deployment
- Smaller than
usizeon 64-bit systems (cache efficiency) - Copy-friendly (no clone overhead)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RecordId
Available on crate feature std only.
impl<'de> Deserialize<'de> for RecordId
Available on crate feature
std only.Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for RecordId
impl Ord for RecordId
Source§impl PartialOrd for RecordId
impl PartialOrd for RecordId
impl Copy for RecordId
impl Eq for RecordId
impl StructuralPartialEq for RecordId
Auto Trait Implementations§
impl Freeze for RecordId
impl RefUnwindSafe for RecordId
impl Send for RecordId
impl Sync for RecordId
impl Unpin for RecordId
impl UnwindSafe for RecordId
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