pub enum FixtureBehavior {
EchoArgs,
SumNumbers,
ConstantString(String),
}Expand description
Deterministic behavior a FixtureTransport runs for an operation.
Variants§
EchoArgs
Returns the call arguments unchanged.
SumNumbers
Returns the numeric sum of the argument list.
ConstantString(String)
Returns a fixed string regardless of arguments.
Trait Implementations§
Source§impl Clone for FixtureBehavior
impl Clone for FixtureBehavior
Source§fn clone(&self) -> FixtureBehavior
fn clone(&self) -> FixtureBehavior
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FixtureBehavior
impl RefUnwindSafe for FixtureBehavior
impl Send for FixtureBehavior
impl Sync for FixtureBehavior
impl Unpin for FixtureBehavior
impl UnsafeUnpin for FixtureBehavior
impl UnwindSafe for FixtureBehavior
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