pub struct EmbassyHost<E> { /* private fields */ }Expand description
Embassy clock and caller-supplied entropy source.
Implementations§
Source§impl<E> EmbassyHost<E>
impl<E> EmbassyHost<E>
pub fn new(draw_entropy: E) -> Self
pub fn new_with_timebase(timebase: EmbassyTimebase, draw_entropy: E) -> Self
Trait Implementations§
Source§impl<E> Host for EmbassyHost<E>
impl<E> Host for EmbassyHost<E>
fn now(&self) -> InstantMillis
async fn sleep_until(&self, deadline: InstantMillis)
fn fill_entropy(&mut self, bytes: &mut [u8])
Auto Trait Implementations§
impl<E> Freeze for EmbassyHost<E>where
E: Freeze,
impl<E> RefUnwindSafe for EmbassyHost<E>where
E: RefUnwindSafe,
impl<E> Send for EmbassyHost<E>where
E: Send,
impl<E> Sync for EmbassyHost<E>where
E: Sync,
impl<E> Unpin for EmbassyHost<E>where
E: Unpin,
impl<E> UnsafeUnpin for EmbassyHost<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for EmbassyHost<E>where
E: UnwindSafe,
Blanket Implementations§
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