pub type SplitBranchResult<'w, 's, 'a, 'b, T> = Result<SplitBuilder<'w, 's, 'a, 'b, T>, (SplitBuilder<'w, 's, 'a, 'b, T>, SplitConnectionError)>;Expand description
This is a type alias for the result returned by the branching SplitBuilder
functions. If the last connection succeeded, you will receive Ok with
the SplitBuilder which you can keep building off of. Otherwise if the
last connection failed, you will receive an Err with the SplitBuilder
bundled with SplitConnectionError to tell you what went wrong. You can
continue building with the SplitBuilder even if an error occurred.
You can use ignore_result from the IgnoreSplitChainResult trait to
just keep chaining without checking whether the connection suceeded.
Aliased Type§
pub enum SplitBranchResult<'w, 's, 'a, 'b, T> {
Ok(SplitBuilder<'w, 's, 'a, 'b, T>),
Err((SplitBuilder<'w, 's, 'a, 'b, T>, SplitConnectionError)),
}Variants§
Ok(SplitBuilder<'w, 's, 'a, 'b, T>)
Contains the success value
Err((SplitBuilder<'w, 's, 'a, 'b, T>, SplitConnectionError))
Contains the error value