[][src]Struct interledger_api::NodeApi

pub struct NodeApi<S, I, O, B, A: Account> { /* fields omitted */ }

Methods

impl<S, I, O, B, A> NodeApi<S, I, O, B, A> where
    S: NodeStore<Account = A> + HttpStore<Account = A> + BalanceStore<Account = A> + SettlementStore<Account = A> + StreamNotificationsStore<Account = A> + RouterStore + ExchangeRateStore,
    I: IncomingService<A> + Clone + Send + Sync + 'static,
    O: OutgoingService<A> + Clone + Send + Sync + 'static,
    B: OutgoingService<A> + Clone + Send + Sync + 'static,
    A: BtpAccount + CcpRoutingAccount + Account + HttpAccount + SettlementAccount + Serialize + Send + Sync + 'static, 
[src]

pub fn new(
    server_secret: Bytes,
    admin_api_token: String,
    store: S,
    incoming_handler: I,
    outgoing_handler: O,
    btp: BtpOutgoingService<B, A>
) -> Self
[src]

pub fn default_spsp_account(&mut self, username: Username) -> &mut Self[src]

pub fn node_version(&mut self, version: String) -> &mut Self[src]

pub fn into_warp_filter(self) -> BoxedFilter<(impl Reply,)>[src]

pub fn bind(self, addr: SocketAddr) -> impl Future<Item = (), Error = ()>[src]

Auto Trait Implementations

impl<S, I, O, B, A> Send for NodeApi<S, I, O, B, A> where
    B: Send,
    I: Send,
    O: Send,
    S: Send,
    <A as Account>::AccountId: Send + Sync

impl<S, I, O, B, A> Sync for NodeApi<S, I, O, B, A> where
    B: Sync,
    I: Sync,
    O: Sync,
    S: Sync,
    <A as Account>::AccountId: Send + Sync

impl<S, I, O, B, A> Unpin for NodeApi<S, I, O, B, A> where
    B: Unpin,
    I: Unpin,
    O: Unpin,
    S: Unpin

impl<S, I, O, B, A> !UnwindSafe for NodeApi<S, I, O, B, A>

impl<S, I, O, B, A> !RefUnwindSafe for NodeApi<S, I, O, B, A>

Blanket Implementations

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

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,