pub trait Merge<Resp> {
type Merged;
// Required methods
fn into_continue(self) -> Self::Merged;
fn from_done(resp: Response<Resp>) -> Self::Merged;
}Expand description
Glue trait that lets a Branch::then(jig) accept a jig whose output is a
Request, a Response, or another Branch, and merge the two outcomes
into a single value.
Required Associated Types§
Required Methods§
Sourcefn into_continue(self) -> Self::Merged
fn into_continue(self) -> Self::Merged
Called when the previous Branch was Continue.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.