pub struct ThreadEntropyRegistry { /* private fields */ }Expand description
Thread-local entropy source registry
This structure manages custom entropy sources for the current thread. It uses atomic operations to ensure thread safety.
Implementations§
Source§impl ThreadEntropyRegistry
impl ThreadEntropyRegistry
Sourcepub unsafe fn register(&self, source: *const CustomEntropySource)
pub unsafe fn register(&self, source: *const CustomEntropySource)
Sourcepub fn unregister(&self)
pub fn unregister(&self)
Unregister the current entropy source
Sourcepub unsafe fn get_source(&self) -> Option<&CustomEntropySource>
pub unsafe fn get_source(&self) -> Option<&CustomEntropySource>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ThreadEntropyRegistry
impl RefUnwindSafe for ThreadEntropyRegistry
impl Send for ThreadEntropyRegistry
impl Sync for ThreadEntropyRegistry
impl Unpin for ThreadEntropyRegistry
impl UnsafeUnpin for ThreadEntropyRegistry
impl UnwindSafe for ThreadEntropyRegistry
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