dhcp_client_core::deps

Trait RngProvider

Source
pub trait RngProvider {
    type RNG: Rng + ?Sized;

    // Required method
    fn get_rng(&mut self) -> &mut Self::RNG;
}
Expand description

Provides access to random number generation.

Required Associated Types§

Source

type RNG: Rng + ?Sized

The random number generator being provided.

Required Methods§

Source

fn get_rng(&mut self) -> &mut Self::RNG

Get access to a random number generator.

Implementations on Foreign Types§

Source§

impl RngProvider for StdRng

Source§

type RNG = StdRng

Source§

fn get_rng(&mut self) -> &mut Self::RNG

Implementors§