pub struct Http;
Trait Implementations§
Source§impl<T: AsyncRead + AsyncWrite + 'static> ServerProto<T> for Http
impl<T: AsyncRead + AsyncWrite + 'static> ServerProto<T> for Http
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, P> BindServer<Pipeline, T> for Pwhere
T: 'static,
P: ServerProto<T>,
impl<T, P> BindServer<Pipeline, T> for Pwhere
T: 'static,
P: ServerProto<T>,
Source§type ServiceRequest = <P as ServerProto<T>>::Request
type ServiceRequest = <P as ServerProto<T>>::Request
The request type for the service.
Source§type ServiceResponse = <P as ServerProto<T>>::Response
type ServiceResponse = <P as ServerProto<T>>::Response
The response type for the service.
Source§type ServiceError = Error
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,
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more