pub struct StubBehavior {
pub starting_calls: u32,
pub responses: HashMap<String, StubResponses>,
pub throw_on: Option<(Option<String>, Option<String>, String)>,
pub hang_on: Option<String>,
}Fields§
§starting_calls: u32Force ensureServer to return a “starting” handle for the first N calls for this language; ready on the (N+1)th.
responses: HashMap<String, StubResponses>Force responses by language.
throw_on: Option<(Option<String>, Option<String>, String)>Force any next call for the given op to throw.
hang_on: Option<String>Force the op to hang until the cancel signal fires.
Trait Implementations§
Source§impl Clone for StubBehavior
impl Clone for StubBehavior
Source§fn clone(&self) -> StubBehavior
fn clone(&self) -> StubBehavior
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for StubBehavior
impl Default for StubBehavior
Source§fn default() -> StubBehavior
fn default() -> StubBehavior
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StubBehavior
impl !RefUnwindSafe for StubBehavior
impl Send for StubBehavior
impl Sync for StubBehavior
impl Unpin for StubBehavior
impl UnsafeUnpin for StubBehavior
impl !UnwindSafe for StubBehavior
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