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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)