Struct engineioxide::service::NotFoundService
source · pub struct NotFoundService;Expand description
A [Service] that always returns a 404 response and that is compatible with EngineIoService.
Trait Implementations§
source§impl Clone for NotFoundService
impl Clone for NotFoundService
source§fn clone(&self) -> NotFoundService
fn clone(&self) -> NotFoundService
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for NotFoundService
impl Debug for NotFoundService
source§impl<ReqBody> Service<Request<ReqBody>> for NotFoundService
impl<ReqBody> Service<Request<ReqBody>> for NotFoundService
§type Error = Infallible
type Error = Infallible
Errors produced by the service.
§type Future = Ready<Result<Response<ResponseBody<Empty<Bytes>>>, Infallible>>
type Future = Ready<Result<Response<ResponseBody<Empty<Bytes>>>, Infallible>>
The future response value.
Auto Trait Implementations§
impl RefUnwindSafe for NotFoundService
impl Send for NotFoundService
impl Sync for NotFoundService
impl Unpin for NotFoundService
impl UnwindSafe for NotFoundService
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