[][src]Struct interledger_http::HttpServer

pub struct HttpServer<I, S> { /* fields omitted */ }

A warp filter that parses incoming ILP-Over-HTTP requests, validates the authorization, and passes the request to an IncomingService handler.

Methods

impl<I, S> HttpServer<I, S> where
    I: IncomingService<S::Account> + Clone + Send + Sync + 'static,
    S: HttpStore
[src]

pub fn new(incoming: I, store: S) -> Self[src]

pub fn as_filter(
    &self
) -> impl Filter<Extract = (Response<Bytes>,), Error = Rejection> + Clone
[src]

pub fn bind(
    &self,
    addr: SocketAddr
) -> impl Future<Item = (), Error = ()> + Send
[src]

Trait Implementations

impl<I: Clone, S: Clone> Clone for HttpServer<I, S>[src]

Auto Trait Implementations

impl<I, S> Send for HttpServer<I, S> where
    I: Send,
    S: Send

impl<I, S> Sync for HttpServer<I, S> where
    I: Sync,
    S: Sync

impl<I, S> Unpin for HttpServer<I, S> where
    I: Unpin,
    S: Unpin

impl<I, S> UnwindSafe for HttpServer<I, S> where
    I: UnwindSafe,
    S: UnwindSafe

impl<I, S> RefUnwindSafe for HttpServer<I, S> where
    I: 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, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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