aws_lc_sys

Type Alias RAND_METHOD

Source
pub type RAND_METHOD = rand_meth_st;

Aliased Type§

struct RAND_METHOD {
    pub seed: Option<unsafe extern "C" fn(_: *const c_void, _: i32)>,
    pub bytes: Option<unsafe extern "C" fn(_: *mut u8, _: usize) -> i32>,
    pub cleanup: Option<unsafe extern "C" fn()>,
    pub add: Option<unsafe extern "C" fn(_: *const c_void, _: i32, _: f64)>,
    pub pseudorand: Option<unsafe extern "C" fn(_: *mut u8, _: usize) -> i32>,
    pub status: Option<unsafe extern "C" fn() -> i32>,
}

Fields§

§seed: Option<unsafe extern "C" fn(_: *const c_void, _: i32)>§bytes: Option<unsafe extern "C" fn(_: *mut u8, _: usize) -> i32>§cleanup: Option<unsafe extern "C" fn()>§add: Option<unsafe extern "C" fn(_: *const c_void, _: i32, _: f64)>§pseudorand: Option<unsafe extern "C" fn(_: *mut u8, _: usize) -> i32>§status: Option<unsafe extern "C" fn() -> i32>

Trait Implementations

Source§

impl Clone for rand_meth_st

Source§

fn clone(&self) -> rand_meth_st

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for rand_meth_st

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for rand_meth_st

Source§

fn default() -> rand_meth_st

Returns the “default value” for a type. Read more
Source§

impl PartialEq for rand_meth_st

Source§

fn eq(&self, other: &rand_meth_st) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for rand_meth_st

Source§

impl Eq for rand_meth_st

Source§

impl StructuralPartialEq for rand_meth_st