pub struct ThreadRandomGenerator;Trait Implementations§
Source§impl<Runtime, T> RandomGenerator<Runtime, T> for ThreadRandomGenerator
impl<Runtime, T> RandomGenerator<Runtime, T> for ThreadRandomGenerator
async fn generate_random(_runtime: &Runtime) -> T
async fn random_range(_runtime: &Runtime, min: T, max: T) -> T
Auto Trait Implementations§
impl Freeze for ThreadRandomGenerator
impl RefUnwindSafe for ThreadRandomGenerator
impl Send for ThreadRandomGenerator
impl Sync for ThreadRandomGenerator
impl Unpin for ThreadRandomGenerator
impl UnsafeUnpin for ThreadRandomGenerator
impl UnwindSafe for ThreadRandomGenerator
Blanket Implementations§
impl<A> Async for A
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