pub struct ShadowOptions<'a> {
pub repo: &'a Path,
pub build: &'a str,
pub listen: Option<u16>,
pub upstream: Option<&'a str>,
pub requests: Option<usize>,
pub timeout_secs: Option<u64>,
pub keep: bool,
pub progress: Option<&'a dyn Fn(Event<'_>)>,
}Fields§
§repo: &'a Path§build: &'a strCommand line of the build to compare.
listen: Option<u16>The port the proxy listens on; a free one when None.
upstream: Option<&'a str>HOST:PORT of an original that is already running; the saved command starts one when
None.
requests: Option<usize>Stop after this many requests; run until stopped when None.
timeout_secs: Option<u64>§keep: boolAppend each mismatching request to shadow/inputs.jsonl.
progress: Option<&'a dyn Fn(Event<'_>)>Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ShadowOptions<'a>
impl<'a> !Send for ShadowOptions<'a>
impl<'a> !Sync for ShadowOptions<'a>
impl<'a> !UnwindSafe for ShadowOptions<'a>
impl<'a> Forget for ShadowOptions<'a>
impl<'a> Freeze for ShadowOptions<'a>
impl<'a> Move for ShadowOptions<'a>
impl<'a> Unpin for ShadowOptions<'a>
impl<'a> UnsafeUnpin for ShadowOptions<'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