end = verification .transition(SourceExisting) .transition(TargetExisting) .transition(VerifiedPeers); verification.transition(SourceExisting); //~^ ERROR use of moved value: `verification`
= Replicator::new("source", "target"); let v = VerifyPeers::new(r); let end = v .check_source_existence() .and_then(|state| { state.check_target_existence() }).and_then(|state| { //... }