Struct rand_data

Source
#[repr(C)]
pub struct rand_data {
Show 27 fields pub data: [u8; 32], pub prev_time: u64, pub flags: c_uint, pub osr: c_uint, pub mem: *mut c_uchar, pub memmask: u32, pub memaccessloops: c_uint, pub rct_count: c_int, pub apt_cutoff: c_uint, pub apt_observations: c_uint, pub apt_count: c_uint, pub apt_base: u64, pub health_failure: c_uint, pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>, pub notime_interrupt: u8, pub notime_timer: u64, pub notime_prev_timer: u64, pub notime_thread_ctx: *mut c_void, pub jent_common_timer_gcd: u64, pub lag_global_cutoff: c_uint, pub lag_local_cutoff: c_uint, pub lag_prediction_success_count: c_uint, pub lag_prediction_success_run: c_uint, pub lag_best_predictor: c_uint, pub lag_observations: c_uint, pub lag_delta_history: [u64; 8], pub lag_scoreboard: [c_uint; 8],
}

Fields§

§data: [u8; 32]§prev_time: u64§flags: c_uint§osr: c_uint§mem: *mut c_uchar§memmask: u32§memaccessloops: c_uint§rct_count: c_int§apt_cutoff: c_uint§apt_observations: c_uint§apt_count: c_uint§apt_base: u64§health_failure: c_uint§_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>§notime_interrupt: u8§notime_timer: u64§notime_prev_timer: u64§notime_thread_ctx: *mut c_void§jent_common_timer_gcd: u64§lag_global_cutoff: c_uint§lag_local_cutoff: c_uint§lag_prediction_success_count: c_uint§lag_prediction_success_run: c_uint§lag_best_predictor: c_uint§lag_observations: c_uint§lag_delta_history: [u64; 8]§lag_scoreboard: [c_uint; 8]

Implementations§

Source§

impl rand_data

Source

pub fn apt_base_set(&self) -> c_uint

Source

pub fn set_apt_base_set(&mut self, val: c_uint)

Source

pub fn fips_enabled(&self) -> c_uint

Source

pub fn set_fips_enabled(&mut self, val: c_uint)

Source

pub fn enable_notime(&self) -> c_uint

Source

pub fn set_enable_notime(&mut self, val: c_uint)

Source

pub fn max_mem_set(&self) -> c_uint

Source

pub fn set_max_mem_set(&mut self, val: c_uint)

Source

pub fn new_bitfield_1( apt_base_set: c_uint, fips_enabled: c_uint, enable_notime: c_uint, max_mem_set: c_uint, ) -> __BindgenBitfieldUnit<[u8; 1], u8>

Trait Implementations§

Source§

impl Clone for rand_data

Source§

fn clone(&self) -> rand_data

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_data

Source§

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

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

impl Copy for rand_data

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.