#[repr(transparent)]pub struct RegistryGeneration(pub u32);Expand description
Monotonic generation counter of the extension registry.
Incremented on every provider registration or unload so stale PreparedCallHandles
fail closed in $O(1)$ before dispatch.
Tuple Fields§
§0: u32Implementations§
Trait Implementations§
Source§impl Clone for RegistryGeneration
impl Clone for RegistryGeneration
impl Copy for RegistryGeneration
Source§impl Debug for RegistryGeneration
impl Debug for RegistryGeneration
impl Eq for RegistryGeneration
Source§impl Hash for RegistryGeneration
impl Hash for RegistryGeneration
Source§impl Ord for RegistryGeneration
impl Ord for RegistryGeneration
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RegistryGeneration
impl PartialEq for RegistryGeneration
Source§impl PartialOrd for RegistryGeneration
impl PartialOrd for RegistryGeneration
impl StructuralPartialEq for RegistryGeneration
Auto Trait Implementations§
impl Freeze for RegistryGeneration
impl RefUnwindSafe for RegistryGeneration
impl Send for RegistryGeneration
impl Sync for RegistryGeneration
impl Unpin for RegistryGeneration
impl UnsafeUnpin for RegistryGeneration
impl UnwindSafe for RegistryGeneration
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