[][src]Function interledger_btp::connect_client

pub fn connect_client<A, S>(
    ilp_address: Address,
    accounts: Vec<A>,
    error_on_unavailable: bool,
    next_outgoing: S
) -> impl Future<Item = BtpOutgoingService<S, A>, Error = ()> where
    S: OutgoingService<A> + Clone + 'static,
    A: BtpAccount + 'static, 

Create a BtpOutgoingService wrapping BTP connections to the accounts specified. Calling handle_incoming with an IncomingService will turn the returned BtpOutgoingService into a bidirectional handler.