[][src]Struct interledger_btp::BtpService

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

Methods

impl<I, O, A> BtpService<I, O, A> where
    I: IncomingService<A> + Clone + Send + 'static,
    O: OutgoingService<A> + Clone,
    A: BtpAccount + 'static, 
[src]

pub fn close(&self)[src]

Close all of the open WebSocket connections

Trait Implementations

impl<I: Clone, O: Clone, A: Clone + Account> Clone for BtpService<I, O, A>[src]

impl<I, O, A> OutgoingService<A> for BtpService<I, O, A> where
    O: OutgoingService<A> + Clone + Send + 'static,
    A: BtpAccount + 'static, 
[src]

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.

Auto Trait Implementations

impl<I, O, A> Send for BtpService<I, O, A> where
    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

impl<I, O, A> Unpin for BtpService<I, O, A> where
    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]

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

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

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self