Struct aws_smithy_async::test_util::ControlledSleep
source · pub struct ControlledSleep { /* private fields */ }
Available on crate feature
test-util
only.Expand description
A sleep implementation where calls to AsyncSleep::sleep
block until SleepGate::expect_sleep
is called
Create a ControlledSleep
with controlled_time_and_sleep
Trait Implementations§
source§impl AsyncSleep for ControlledSleep
impl AsyncSleep for ControlledSleep
source§impl Clone for ControlledSleep
impl Clone for ControlledSleep
source§fn clone(&self) -> ControlledSleep
fn clone(&self) -> ControlledSleep
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ControlledSleep
impl !RefUnwindSafe for ControlledSleep
impl Send for ControlledSleep
impl Sync for ControlledSleep
impl Unpin for ControlledSleep
impl !UnwindSafe for ControlledSleep
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