[][src]Struct interledger_settlement::SettlementApi

pub struct SettlementApi<S, O, A> { /* fields omitted */ }

Methods

impl<S, O, A> SettlementApi<S, O, A> where
    S: SettlementStore<Account = A> + IdempotentStore + AccountStore<Account = A> + Clone + Send + Sync + 'static,
    O: OutgoingService<A> + Clone + Send + Sync + 'static,
    A: SettlementAccount + IldcpAccount + Send + Sync + 'static, 

pub fn new(store: S, outgoing_handler: O) -> Self[src]

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

Trait Implementations

impl<S: Clone, O: Clone, A: Clone> Clone for SettlementApi<S, O, A>[src]

impl<__U, S, O, A> Chain<__U> for SettlementApi<S, O, A> where
    S: SettlementStore<Account = A> + IdempotentStore + AccountStore<Account = A> + Clone + Send + Sync + 'static,
    O: OutgoingService<A> + Clone + Send + Sync + 'static,
    A: SettlementAccount + IldcpAccount + Send + Sync + 'static, 

type Output = (Self, __U)

The combined type

impl<__S, __B, S, O, A> IntoResource<__S, __B> for SettlementApi<S, O, A> where
    __S: Serializer,
    __B: BufStream,
    S: SettlementStore<Account = A> + IdempotentStore + AccountStore<Account = A> + Clone + Send + Sync + 'static,
    O: OutgoingService<A> + Clone + Send + Sync + 'static,
    A: SettlementAccount + IldcpAccount + Send + Sync + 'static, 

type Destination = Either2<(), ()>

Token mapping a route to a resource method. Read more

type Resource = __GeneratedResource<__S, __B, SettlementApi<S, O, A>>

The Resource value being converted to

Auto Trait Implementations

impl<S, O, A> Unpin for SettlementApi<S, O, A> where
    A: Unpin,
    O: Unpin,
    S: Unpin

impl<S, O, A> Sync for SettlementApi<S, O, A> where
    A: Sync,
    O: Sync,
    S: Sync

impl<S, O, A> Send for SettlementApi<S, O, A> where
    A: Send,
    O: Send,
    S: Send

impl<S, O, A> UnwindSafe for SettlementApi<S, O, A> where
    A: UnwindSafe,
    O: UnwindSafe,
    S: UnwindSafe

impl<S, O, A> RefUnwindSafe for SettlementApi<S, O, A> where
    A: RefUnwindSafe,
    O: RefUnwindSafe,
    S: RefUnwindSafe

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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