[][src]Struct interledger_router::Router

pub struct Router<S, T> { /* fields omitted */ }

The router implements the IncomingService trait and uses the routing table to determine the to (or "next hop") Account for the given request.

Note that the router does not:

  • apply exchange rates or fees to the Prepare packet
  • adjust account balances
  • reduce the Prepare packet's expiry

Methods

impl<S, T> Router<S, T> where
    S: OutgoingService<T::Account>,
    T: RouterStore
[src]

pub fn new(next: S, store: T) -> Self[src]

Trait Implementations

impl<S: Clone, T: Clone> Clone for Router<S, T>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<S, T> IncomingService<<T as AccountStore>::Account> for Router<S, T> where
    S: OutgoingService<T::Account> + Clone + Send + 'static,
    T: RouterStore
[src]

type Future = BoxedIlpFuture

Auto Trait Implementations

impl<S, T> Send for Router<S, T> where
    S: Send,
    T: Send

impl<S, T> Sync for Router<S, T> where
    S: Sync,
    T: Sync

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.