[−][src]Struct interledger_btp::BtpService
Methods
impl<I, O, A> BtpService<I, O, A> where
I: IncomingService<A> + Clone + Send + 'static,
O: OutgoingService<A> + Clone,
A: BtpAccount + 'static,
[src]
I: IncomingService<A> + Clone + Send + 'static,
O: OutgoingService<A> + Clone,
A: BtpAccount + 'static,
Trait Implementations
impl<I: Clone, O: Clone, A: Clone + Account> Clone for BtpService<I, O, A>
[src]
fn clone(&self) -> BtpService<I, O, A>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<I, O, A> OutgoingService<A> for BtpService<I, O, A> where
O: OutgoingService<A> + Clone + Send + 'static,
A: BtpAccount + 'static,
[src]
O: OutgoingService<A> + Clone + Send + 'static,
A: BtpAccount + 'static,
type Future = BoxedIlpFuture
fn send_request(&mut self, request: OutgoingRequest<A>) -> Self::Future
[src]
Send an outgoing request to one of the open connections.
If there is no open connection for the Account specified in request.to
, the
request will be passed through to the next
handler.
fn wrap<F, R>(self, f: F) -> WrappedService<F, Self, A> where
F: Fn(OutgoingRequest<A>, Self) -> R,
R: Future<Item = Fulfill, Error = Reject> + Send + 'static,
Self: Clone,
[src]
F: Fn(OutgoingRequest<A>, Self) -> R,
R: Future<Item = Fulfill, Error = Reject> + Send + 'static,
Self: Clone,
Auto Trait Implementations
impl<I, O, A> Send for BtpService<I, O, A> where
I: Send,
O: Send,
<A as Account>::AccountId: Send + Sync,
I: Send,
O: Send,
<A as Account>::AccountId: Send + Sync,
impl<I, O, A> Sync for BtpService<I, O, A> where
I: Sync,
O: Sync,
<A as Account>::AccountId: Send + Sync,
I: Sync,
O: Sync,
<A as Account>::AccountId: Send + Sync,
impl<I, O, A> Unpin for BtpService<I, O, A> where
I: Unpin,
O: Unpin,
I: Unpin,
O: Unpin,
impl<I, O, A> !UnwindSafe for BtpService<I, O, A>
impl<I, O, A> !RefUnwindSafe for BtpService<I, O, A>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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> 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> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> Same<T> for T
type Output = T
Should always be Self