pub struct StaticHandler { /* private fields */ }
Implementations§
Source§impl StaticHandler
impl StaticHandler
pub fn serve(&self, _request: Request<Body>) -> HandlerFutureDynBox
pub fn serve_special(&self, _request: Request<Body>) -> HandlerFutureDynBox
pub fn serve_routes_index_html( &self, _request: Request<Body>, ) -> HandlerFutureDynBox
pub fn serve_routes_index_txt( &self, _request: Request<Body>, ) -> HandlerFutureDynBox
pub fn serve_404(&self, _request: Request<Body>) -> HandlerFutureDynBox
Trait Implementations§
Source§impl HandlerDyn for StaticHandler
impl HandlerDyn for StaticHandler
Auto Trait Implementations§
impl Freeze for StaticHandler
impl !RefUnwindSafe for StaticHandler
impl Send for StaticHandler
impl Sync for StaticHandler
impl Unpin for StaticHandler
impl !UnwindSafe for StaticHandler
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