[][src]Struct interledger_api::NodeApi

pub struct NodeApi<S, I> { /* fields omitted */ }

Methods

impl<S, I, A> NodeApi<S, I> where
    S: NodeStore<Account = A> + HttpStore<Account = A> + BalanceStore<Account = A> + SettlementStore<Account = A> + RouterStore + ExchangeRateStore,
    I: IncomingService<A> + Clone + Send + Sync + 'static,
    A: AccountTrait + HttpAccount + IldcpAccount + SettlementAccount + Serialize + Send + Sync + 'static, 
[src]

pub fn new(
    server_secret: Bytes,
    admin_api_token: String,
    store: S,
    incoming_handler: I
) -> Self
[src]

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

pub fn serve<T>(&self, incoming: T) -> impl Future<Item = (), Error = ()> where
    T: ConnectionStream,
    T::Item: Send + 'static, 
[src]

Auto Trait Implementations

impl<S, I> Unpin for NodeApi<S, I> where
    I: Unpin,
    S: Unpin

impl<S, I> Sync for NodeApi<S, I> where
    I: Sync,
    S: Sync

impl<S, I> Send for NodeApi<S, I> where
    I: Send,
    S: Send

impl<S, I> UnwindSafe for NodeApi<S, I> where
    I: UnwindSafe,
    S: UnwindSafe

impl<S, I> RefUnwindSafe for NodeApi<S, I> where
    I: RefUnwindSafe,
    S: RefUnwindSafe

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Erased for T

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