pub struct ConnId {
pub idx: u32,
pub gen: u32,
}Expand description
A connection handle into a source’s connection table. Generational {idx, gen}
(like NodeId/StorageId) so a source can RECYCLE a torn-down connection’s
slot — the ConnTable bumps the generation on
free and checks it on every access, so a stale handle to a recycled slot fail-fasts.
Distinct from NodeId. Same role as 05’s ConnId.
Fields§
§idx: u32§gen: u32Implementations§
Trait Implementations§
impl Copy for ConnId
impl Eq for ConnId
impl StructuralPartialEq for ConnId
Auto Trait Implementations§
impl Freeze for ConnId
impl RefUnwindSafe for ConnId
impl Send for ConnId
impl Sync for ConnId
impl Unpin for ConnId
impl UnsafeUnpin for ConnId
impl UnwindSafe for ConnId
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