[][src]Struct interledger_stream::StreamReceiverService

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

An IncomingService 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, A> StreamReceiverService<S, A> where
    S: IncomingService<A>,
    A: Account
[src]

pub fn new(
    server_secret: &[u8; 32],
    ildcp_response: IldcpResponse,
    next: S
) -> Self
[src]

pub fn without_ildcp(server_secret: &[u8; 32], next: S) -> Self[src]

For creating a receiver service before the ILDCP details have been received

pub fn set_ildcp(&self, ildcp_response: IldcpResponse)[src]

Trait Implementations

impl<S: Clone + IncomingService<A>, A: Clone + Account> Clone for StreamReceiverService<S, A>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<S, A> IncomingService<A> for StreamReceiverService<S, A> where
    S: IncomingService<A>,
    A: Account
[src]

type Future = BoxedIlpFuture

Auto Trait Implementations

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

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

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

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

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto 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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T