Error
where P: FinalitySyncPipeline, SourceError: MaybeConnectionError, TargetError: MaybeConnectionError, { fn fail_if_connection_error(&self) -> Result<(), FailedClient> { match *self { Error::Source(ref error) if error.is_connection_error() => Err(FailedClient::Source), Error::Target(ref error) if error.is_connection_error() => Err(FailedClient::Target), _ => Ok(()), } } }