pub struct TestQueue<'a> {
pub queue: Queue<'a, NotificationCounter>,
pub notify: NotificationCounter,
pub fake_queue: FakeQueue<'a>,
}
Expand description
Wraps common state needed for writing test code with a FakeQueue
.
Fields§
§queue: Queue<'a, NotificationCounter>
§notify: NotificationCounter
§fake_queue: FakeQueue<'a>
Implementations§
Auto Trait Implementations§
impl<'a> !Freeze for TestQueue<'a>
impl<'a> !RefUnwindSafe for TestQueue<'a>
impl<'a> !Send for TestQueue<'a>
impl<'a> !Sync for TestQueue<'a>
impl<'a> Unpin for TestQueue<'a>
impl<'a> UnwindSafe for TestQueue<'a>
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