pub struct Arrival<'s> {
pub source: &'s str,
pub route: String,
pub answers: Vec<GivenAnswer>,
pub mounts: Vec<String>,
}Expand description
How a scenario’s page arrives: everything that happens before statement 0 is observed.
A visitor lands on a page at a URL, in a world that already answers the requests the page makes
as it loads; the page’s own main runs and a ## Page mounts itself. Every tier arrives this
way — the in-process tiers by driving the arranged body’s arrival (Arranged::arrival), a
remote page by being handed this and loading.
Fields§
§source: &'s strThe program the page ships (its ## Main, if it had one, already stripped).
route: StringThe URL the page is visited at: the auto-mounted ## Page’s declared path, else /.
answers: Vec<GivenAnswer>The test’s Given that … answers … statements that come before the page loads, in order.
mounts: Vec<String>Every component the test mounts at a statement of its own — what the page’s host must be
able to mount on demand, read from the test’s own Mount statements.
Trait Implementations§
impl<'s> Eq for Arrival<'s>
impl<'s> StructuralPartialEq for Arrival<'s>
Auto Trait Implementations§
impl<'s> Freeze for Arrival<'s>
impl<'s> RefUnwindSafe for Arrival<'s>
impl<'s> Send for Arrival<'s>
impl<'s> Sync for Arrival<'s>
impl<'s> Unpin for Arrival<'s>
impl<'s> UnsafeUnpin for Arrival<'s>
impl<'s> UnwindSafe for Arrival<'s>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.