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
Source§type Error = Infallible
type Error = Infallible
Errors produced by the service. Read more
Source§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 Freeze for FireService
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