[−][src]Struct interledger_stream::StreamReceiverService
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]
S: IncomingService<A>,
A: Account,
pub fn new(
server_secret: &[u8; 32],
ildcp_response: IldcpResponse,
next: S
) -> Self
[src]
server_secret: &[u8; 32],
ildcp_response: IldcpResponse,
next: S
) -> Self
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(&self) -> 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]
S: IncomingService<A>,
A: Account,
type Future = BoxedIlpFuture
fn handle_request(&mut self, request: IncomingRequest<A>) -> Self::Future
[src]
Auto Trait Implementations
impl<S, A> Send for StreamReceiverService<S, A> where
S: Send,
S: Send,
impl<S, A> Sync for StreamReceiverService<S, A> where
A: Sync,
S: Sync,
A: Sync,
S: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto 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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,