Struct bonsaidb::core::test_util::TimingTest
pub struct TimingTest { /* private fields */ }
Implementations§
§impl TimingTest
impl TimingTest
pub fn new(tolerance: Duration) -> TimingTest
pub fn wait_until(&self, absolute_duration: Duration) -> bool
pub async fn wait_until_async( &self, absolute_duration: Duration ) -> impl Future<Output = bool>
pub fn elapsed(&self) -> Duration
Auto Trait Implementations§
impl RefUnwindSafe for TimingTest
impl Send for TimingTest
impl Sync for TimingTest
impl Unpin for TimingTest
impl UnwindSafe for TimingTest
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: '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