Struct fire_http::service::FireService
source · pub struct FireService { /* private fields */ }Implementations§
source§impl FireService
impl FireService
sourcepub fn new(pit: FirePit, address: SocketAddr) -> Self
pub fn new(pit: FirePit, address: SocketAddr) -> Self
Creates a new FireService which can be passed to a hyper server.
Trait Implementations§
source§impl Service<Request<Incoming>> for FireService
impl Service<Request<Incoming>> for FireService
§type Error = Infallible
type Error = Infallible
Errors produced by the service.
§type Future = PinnedFuture<'static, Result<<FireService as Service<Request<Incoming>>>::Response, <FireService as Service<Request<Incoming>>>::Error>>
type Future = PinnedFuture<'static, Result<<FireService as Service<Request<Incoming>>>::Response, <FireService as Service<Request<Incoming>>>::Error>>
The future response value.
Auto Trait Implementations§
impl !RefUnwindSafe for FireService
impl Send for FireService
impl Sync for FireService
impl Unpin for FireService
impl !UnwindSafe for FireService
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