Struct tinyhttp_internal::codegen::route::GetRouteWithReqAndRes
source · [−]pub struct GetRouteWithReqAndRes { /* private fields */ }
Implementations
sourceimpl GetRouteWithReqAndRes
impl GetRouteWithReqAndRes
pub fn new() -> GetRouteWithReqAndRes
pub fn set_path(self, path: &'static str) -> Self
pub fn set_method(self, method: Method) -> Self
pub fn set_wildcard(self, wildcard: String) -> Self
pub fn set_body(self, body: fn(_: Request) -> Response) -> Self
pub fn get_body(&self) -> Option<fn(_: Request) -> Response>
Trait Implementations
sourceimpl Clone for GetRouteWithReqAndRes
impl Clone for GetRouteWithReqAndRes
sourcefn clone(&self) -> GetRouteWithReqAndRes
fn clone(&self) -> GetRouteWithReqAndRes
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for GetRouteWithReqAndRes
impl Debug for GetRouteWithReqAndRes
sourceimpl Default for GetRouteWithReqAndRes
impl Default for GetRouteWithReqAndRes
sourceimpl Route for GetRouteWithReqAndRes
impl Route for GetRouteWithReqAndRes
sourceimpl ToResponse for GetRouteWithReqAndRes
impl ToResponse for GetRouteWithReqAndRes
Auto Trait Implementations
impl RefUnwindSafe for GetRouteWithReqAndRes
impl Send for GetRouteWithReqAndRes
impl Sync for GetRouteWithReqAndRes
impl Unpin for GetRouteWithReqAndRes
impl UnwindSafe for GetRouteWithReqAndRes
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more