pub struct Visit { /* private fields */ }Available on crate feature
testing only.Expand description
One request to a MockSite, run through a worker without crawling the
links it queues.
Created by MockSite::visit. After run, the worker’s
effects can be checked: the Outcome it returned, the seeds it
queued, and the items it wrote to its datasets.
The queue has no facades: no deduplication, filters or depth limits, so every link the worker follows is kept.
Implementations§
Source§impl Visit
impl Visit
Sourcepub fn with_dataset<T, D>(self, dataset: D) -> Self
pub fn with_dataset<T, D>(self, dataset: D) -> Self
Registers dataset for items of type T.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Visit
impl !RefUnwindSafe for Visit
impl !UnwindSafe for Visit
impl Send for Visit
impl Sync for Visit
impl Unpin for Visit
impl UnsafeUnpin for Visit
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