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 duplicate of the value. Read more
1.0.0 (const: unstable) · 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
Implement a custom tower Service for the NotFoundService
impl<ReqBody> Service<Request<ReqBody>> for NotFoundService
Implement a custom tower Service for the NotFoundService
Source§type Error = Infallible
type Error = Infallible
Errors produced by the service.
Source§type Future = Ready<Result<Response<ResponseBody<Empty<Bytes>>>, Infallible>>
type Future = Ready<Result<Response<ResponseBody<Empty<Bytes>>>, Infallible>>
The future response value.
Source§impl<ReqBody> Service<Request<ReqBody>> for NotFoundService
Implement a custom hyper Service for the NotFoundService
impl<ReqBody> Service<Request<ReqBody>> for NotFoundService
Implement a custom hyper Service for the NotFoundService
Auto Trait Implementations§
impl Freeze for NotFoundService
impl RefUnwindSafe for NotFoundService
impl Send for NotFoundService
impl Sync for NotFoundService
impl Unpin for NotFoundService
impl UnsafeUnpin 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