Struct tinyhttp_internal::codegen::route::GetRouteWithReq
source · [−]pub struct GetRouteWithReq { /* private fields */ }
Implementations
sourceimpl GetRouteWithReq
impl GetRouteWithReq
pub fn new() -> GetRouteWithReq
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) -> Vec<u8>) -> Self
pub fn get_body(&self) -> Option<fn(_: Request) -> Vec<u8>>
Trait Implementations
sourceimpl Clone for GetRouteWithReq
impl Clone for GetRouteWithReq
sourcefn clone(&self) -> GetRouteWithReq
fn clone(&self) -> GetRouteWithReq
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 GetRouteWithReq
impl Debug for GetRouteWithReq
sourceimpl Default for GetRouteWithReq
impl Default for GetRouteWithReq
sourceimpl Route for GetRouteWithReq
impl Route for GetRouteWithReq
sourceimpl ToResponse for GetRouteWithReq
impl ToResponse for GetRouteWithReq
Auto Trait Implementations
impl RefUnwindSafe for GetRouteWithReq
impl Send for GetRouteWithReq
impl Sync for GetRouteWithReq
impl Unpin for GetRouteWithReq
impl UnwindSafe for GetRouteWithReq
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