Trait stomp_test_utils::Chainable [−][src]
pub trait Chainable<E: ErrorType>: BehaviourFunction<E> + Sized { fn then<S: BehaviourFunction<E> + 'static>(
self,
followed_by: S
) -> Box<dyn BehaviourFunction<E>>; }
Expand description
Enables chaining of BehaviourFunctions.
Required methods
fn then<S: BehaviourFunction<E> + 'static>(
self,
followed_by: S
) -> Box<dyn BehaviourFunction<E>>
fn then<S: BehaviourFunction<E> + 'static>(
self,
followed_by: S
) -> Box<dyn BehaviourFunction<E>>Constructs a new BehaviourFunction which will first execute self, and then followed_by.