pub struct EntropyContext {
pub user_data: *mut u8,
pub size: usize,
}Expand description
Context data for entropy callbacks
This structure can be used to pass additional context to entropy callbacks, such as user data or configuration.
Fields§
§user_data: *mut u8User-defined context data
size: usizeContext size in bytes
Implementations§
Trait Implementations§
Source§impl Clone for EntropyContext
impl Clone for EntropyContext
Source§fn clone(&self) -> EntropyContext
fn clone(&self) -> EntropyContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EntropyContext
impl Debug for EntropyContext
impl Copy for EntropyContext
Auto Trait Implementations§
impl Freeze for EntropyContext
impl RefUnwindSafe for EntropyContext
impl !Send for EntropyContext
impl !Sync for EntropyContext
impl Unpin for EntropyContext
impl UnsafeUnpin for EntropyContext
impl UnwindSafe for EntropyContext
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