Struct fire_http::service::MakeFireService
source · pub struct MakeFireService { /* private fields */ }
Expand description
A tower::Service
to be used with the hyper::Server
Implementations§
source§impl MakeFireService
impl MakeFireService
pub fn pit(&self) -> FirePit
pub fn make(&self, address: SocketAddr) -> FireService
Trait Implementations§
source§impl<'a> Service<&'a AddrStream> for MakeFireService
impl<'a> Service<&'a AddrStream> for MakeFireService
§type Response = FireService
type Response = FireService
Responses given by the service.
§type Error = Infallible
type Error = Infallible
Errors produced by the service.
§type Future = Ready<Result<FireService, Infallible>>
type Future = Ready<Result<FireService, Infallible>>
The future response value.
source§fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<StdResult<(), Infallible>>
fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<StdResult<(), Infallible>>
Returns
Poll::Ready(Ok(()))
when the service is able to process requests. Read moresource§fn call(&mut self, addr_stream: &'a AddrStream) -> Self::Future
fn call(&mut self, addr_stream: &'a AddrStream) -> Self::Future
Process the request and return the response asynchronously. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for MakeFireService
impl Send for MakeFireService
impl Sync for MakeFireService
impl Unpin for MakeFireService
impl !UnwindSafe for MakeFireService
Blanket Implementations§
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