[][src]Struct interledger::stream::StreamReceiverService

pub struct StreamReceiverService<S, O, A> where
    A: Account,
    O: OutgoingService<A>, 
{ /* fields omitted */ }

An OutgoingService that fulfills incoming STREAM packets.

Note this does not maintain STREAM state, but instead fulfills all incoming packets to collect the money.

This does not currently support handling data sent via STREAM.

Methods

impl<S, O, A> StreamReceiverService<S, O, A> where
    A: Account,
    O: OutgoingService<A>,
    S: StreamNotificationsStore<Account = A>, 
[src]

pub fn new(
    server_secret: Bytes,
    store: S,
    next: O
) -> StreamReceiverService<S, O, A>
[src]

Trait Implementations

impl<S, O, A> OutgoingService<A> for StreamReceiverService<S, O, A> where
    A: Account,
    O: OutgoingService<A>,
    S: StreamNotificationsStore + Send + Sync + 'static + Clone
[src]

type Future = Box<dyn Future<Error = Reject, Item = Fulfill> + 'static + Send>

fn send_request(
    &mut self,
    request: OutgoingRequest<A>
) -> <StreamReceiverService<S, O, A> as OutgoingService<A>>::Future
[src]

Try fulfilling the request if it is for this STREAM server or pass it to the next outgoing handler if not.

impl<S, O, A> Clone for StreamReceiverService<S, O, A> where
    A: Clone + Account,
    O: Clone + OutgoingService<A>,
    S: Clone
[src]

Auto Trait Implementations

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

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

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

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

impl<S, O, A> RefUnwindSafe for StreamReceiverService<S, O, A> where
    A: RefUnwindSafe,
    O: 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> 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<T> Instrument for T[src]

impl<T> WithSubscriber for T[src]

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,