pub struct Served(/* private fields */);Expand description
What a fake host served, for a test to read back.
A test drives the program and then asks this what went out, rather than asking the host: the host is the program’s boundary, and a test that reached into it would be testing the boundary rather than the program.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Served
impl RefUnwindSafe for Served
impl Send for Served
impl Sync for Served
impl Unpin for Served
impl UnsafeUnpin for Served
impl UnwindSafe for Served
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