[−][src]Struct interledger_settlement::SettlementApi
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,
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]
I: ConnectionStream,
I::Item: Send + 'static,
Trait Implementations
impl<S: Clone, O: Clone, A: Clone> Clone for SettlementApi<S, O, A>
[src]
fn clone(&self) -> SettlementApi<S, O, A>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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,
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,
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,
__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
fn routes(&self) -> RouteSet<Self::Destination>
fn into_resource(self, serializer: __S) -> Self::Resource
Auto Trait Implementations
impl<S, O, A> Unpin for SettlementApi<S, O, A> where
A: Unpin,
O: Unpin,
S: Unpin,
A: Unpin,
O: Unpin,
S: Unpin,
impl<S, O, A> Sync for SettlementApi<S, O, A> where
A: Sync,
O: Sync,
S: Sync,
A: Sync,
O: Sync,
S: Sync,
impl<S, O, A> Send for SettlementApi<S, O, A> where
A: Send,
O: Send,
S: Send,
A: Send,
O: Send,
S: Send,
impl<S, O, A> UnwindSafe for SettlementApi<S, O, A> where
A: UnwindSafe,
O: UnwindSafe,
S: UnwindSafe,
A: UnwindSafe,
O: UnwindSafe,
S: UnwindSafe,
impl<S, O, A> RefUnwindSafe for SettlementApi<S, O, A> where
A: RefUnwindSafe,
O: RefUnwindSafe,
S: RefUnwindSafe,
A: RefUnwindSafe,
O: RefUnwindSafe,
S: RefUnwindSafe,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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>,
U: TryFrom<T>,