struct Ctx<'a> {
fixtures: &'a Path,
state: &'a Path,
modes: Vec<(String, String)>,
now: i64,
after_polls: u64,
big_bytes: usize,
}Fields§
§fixtures: &'a Path§state: &'a Path§modes: Vec<(String, String)>§now: i64§after_polls: u64§big_bytes: usizeImplementations§
Source§impl Ctx<'_>
impl Ctx<'_>
fn mode_of(&self, key: &str) -> Option<&str>
fn fixture_reply( &self, key: &str, params: &[(String, String)], n: u32, ) -> Option<Reply>
Sourcefn mode_outcome(
&self,
key: &str,
mode: &str,
params: &[(String, String)],
) -> Option<Outcome>
fn mode_outcome( &self, key: &str, mode: &str, params: &[(String, String)], ) -> Option<Outcome>
The reply of a failure mode, or None for modes that shape the normal flow.
fn api( &self, op: &str, params: &[(String, String)], body: Option<&str>, ) -> Outcome
fn service(&self, verb: &str) -> Outcome
Auto Trait Implementations§
impl<'a> Freeze for Ctx<'a>
impl<'a> RefUnwindSafe for Ctx<'a>
impl<'a> Send for Ctx<'a>
impl<'a> Sync for Ctx<'a>
impl<'a> Unpin for Ctx<'a>
impl<'a> UnsafeUnpin for Ctx<'a>
impl<'a> UnwindSafe for Ctx<'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