Skip to main content

IlpTransport

Trait IlpTransport 

Source
pub trait IlpTransport: Send + Sync {
    // Required method
    fn send(
        &self,
        ilp_address: &str,
        amount_micro_cents: u64,
        via_nym: bool,
    ) -> Result<(), String>;
}
Expand description

Low-level transport interface. Implemented for HTTP, Nym, and a mock stub.

Required Methods§

Source

fn send( &self, ilp_address: &str, amount_micro_cents: u64, via_nym: bool, ) -> Result<(), String>

Attempt to send amount_micro_cents to ilp_address. Returns Ok(()) on success, Err(reason) on hard failure. Returns Err(“OFFLINE”) if network is not reachable — triggers queue.

Implementors§