Struct async_utils::hanging_get::test_util::TestObserver
source · pub struct TestObserver<V: Debug + PartialEq> { /* private fields */ }
Expand description
An observer that can be used to observe values from a HangingGet
or
Window
instance. The observer must not be observed multiple
times without the value being taken with take_value
inbetween each
observation. This prevents overwriting observations without checking
them and simplifies the logic and API surface of this fake.
Implementations§
Trait Implementations§
source§impl<V: Clone + Debug + PartialEq> Clone for TestObserver<V>
impl<V: Clone + Debug + PartialEq> Clone for TestObserver<V>
source§fn clone(&self) -> TestObserver<V>
fn clone(&self) -> TestObserver<V>
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<V> Freeze for TestObserver<V>where
V: Freeze,
impl<V> !RefUnwindSafe for TestObserver<V>
impl<V> !Send for TestObserver<V>
impl<V> !Sync for TestObserver<V>
impl<V> Unpin for TestObserver<V>where
V: Unpin,
impl<V> !UnwindSafe for TestObserver<V>
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
)