[][src]Function interledger_service::outgoing_service_fn

pub fn outgoing_service_fn<A, B, F>(handler: F) -> ServiceFn<F, A> where
    A: Account,
    B: IntoFuture<Item = Fulfill, Error = Reject>,
    F: FnMut(OutgoingRequest<A>) -> B, 

Create an OutgoingService that calls the given handler for each request.