[][src]Struct interledger_spsp::SpspResponder

pub struct SpspResponder { /* fields omitted */ }

A Hyper::Service that responds to incoming SPSP Query requests with newly generated details for a STREAM connection.

Methods

impl SpspResponder[src]

pub fn new(ilp_address: Address, server_secret: Bytes) -> Self[src]

pub fn generate_http_response(&self) -> Response<Body>[src]

Trait Implementations

impl Clone for SpspResponder[src]

impl IntoFuture for SpspResponder[src]

type Item = Self

The item that the future may resolve with.

type Error = Never

The error that the future may resolve with.

type Future = FutureResult<Self::Item, Self::Error>

The future that this type can be converted into.

impl Service for SpspResponder[src]

type ReqBody = Body

The Payload body of the http::Request.

type ResBody = Body

The Payload body of the http::Response.

type Error = Error

The error type that can occur within this Service. Read more

type Future = FutureResult<Response<Body>, Error>

The Future returned by this Service.

Auto Trait Implementations

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<F> IntoFuture for F where
    F: Future
[src]

type Future = F

The future that this type can be converted into.

type Item = <F as Future>::Item

The item that the future may resolve with.

type Error = <F as Future>::Error

The error that the future may resolve with.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err