Skip to main content

Host

Trait Host 

Source
pub trait Host {
    // Required methods
    fn now(&self) -> InstantMillis;
    async fn sleep_until(&self, deadline: InstantMillis);
    fn fill_entropy(&mut self, bytes: &mut [u8]);
}

Required Methods§

Source

fn now(&self) -> InstantMillis

Source

async fn sleep_until(&self, deadline: InstantMillis)

Source

fn fill_entropy(&mut self, bytes: &mut [u8])

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§