Trait EntropyCallbackMut

Source
pub trait EntropyCallbackMut: Send + Sync {
    // Required methods
    unsafe extern "C" fn call_mut(
        user_data: *mut c_void,
        data: *mut c_uchar,
        len: size_t,
    ) -> c_int
       where Self: Sized;
    fn data_ptr_mut(&mut self) -> *mut c_void;
}

Required Methods§

Source

unsafe extern "C" fn call_mut( user_data: *mut c_void, data: *mut c_uchar, len: size_t, ) -> c_int
where Self: Sized,

Source

fn data_ptr_mut(&mut self) -> *mut c_void

Implementors§

Source§

impl EntropyCallbackMut for OsEntropy

Available on sys_std_component="entropy" only.
Source§

impl<F> EntropyCallbackMut for F
where F: FnMut(*mut c_uchar, size_t) -> c_int + Send + Sync,