pub trait Merge<R> {
type Merged;
// Required methods
fn into_continue(self) -> Self::Merged;
fn from_done(resp: R) -> 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.
Implement this for custom request/response types when you need to use them
after a Branch. See the impl_request! and impl_response!
convenience macros, or derive Request / Response which generate this
automatically.
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.