pub struct MockHandle {
pub base_url: String,
pub state: MockState,
pub ct: CancellationToken,
}Expand description
Handle to a spawned mock server.
Fields§
§base_url: StringBase URL (http://127.0.0.1:<port>); append nothing — the provider
route is already registered under it.
state: MockStateShared fact recorder for assertions.
ct: CancellationTokenCancel to shut the server down gracefully.
Auto Trait Implementations§
impl Freeze for MockHandle
impl RefUnwindSafe for MockHandle
impl Send for MockHandle
impl Sync for MockHandle
impl Unpin for MockHandle
impl UnsafeUnpin for MockHandle
impl UnwindSafe for MockHandle
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