Struct Http

Source
pub struct Http;

Trait Implementations§

Source§

impl<T: AsyncRead + AsyncWrite + 'static> ServerProto<T> for Http

Source§

type Request = Request

Request messages.
Source§

type Response = Response

Response messages.
Source§

type Transport = Framed<T, HttpCodec>

The message transport, which works with I/O objects of type T. Read more
Source§

type BindTransport = Result<Framed<T, HttpCodec>, Error>

A future for initializing a transport from an I/O object. Read more
Source§

fn bind_transport(&self, io: T) -> Result<Framed<T, HttpCodec>>

Build a transport from the given I/O object, using self for any configuration. Read more

Auto Trait Implementations§

§

impl Freeze for Http

§

impl RefUnwindSafe for Http

§

impl Send for Http

§

impl Sync for Http

§

impl Unpin for Http

§

impl UnwindSafe for Http

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T, P> BindServer<Pipeline, T> for P
where T: 'static, P: ServerProto<T>,

Source§

type ServiceRequest = <P as ServerProto<T>>::Request

The request type for the service.
Source§

type ServiceResponse = <P as ServerProto<T>>::Response

The response type for the service.
Source§

type ServiceError = Error

The error type for the service.
Source§

fn bind_server<S>(&self, handle: &Handle, io: T, service: S)
where S: Service<Request = <P as BindServer<Pipeline, T>>::ServiceRequest, Response = <P as BindServer<Pipeline, T>>::ServiceResponse, Error = Error> + 'static,

Bind the service. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.