[][src]Struct roa_core::HttpService

pub struct HttpService<M: Model> { /* fields omitted */ }

Methods

impl<M: Model> HttpService<M>[src]

pub fn new(app: App<M>, addr: SocketAddr) -> Self[src]

Trait Implementations

impl<M: Model> Clone for HttpService<M>[src]

impl<M: Model> Service<Request<Body>> for HttpService<M>[src]

type Response = HttpResponse<HyperBody>

Responses given by the service.

type Error = Status

Errors produced by the service.

type Future = Pin<Box<dyn Future<Output = Result<HttpResponse<HyperBody>, Status>> + Send + 'static>>

The future response value.

Auto Trait Implementations

impl<M> !RefUnwindSafe for HttpService<M>

impl<M> Send for HttpService<M>

impl<M> Sync for HttpService<M>

impl<M> Unpin for HttpService<M>

impl<M> !UnwindSafe for HttpService<M>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<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.