Struct tinyhttp_internal::codegen::route::BasicGetRoute
source · [−]pub struct BasicGetRoute { /* private fields */ }
Implementations
sourceimpl BasicGetRoute
impl BasicGetRoute
pub fn new() -> BasicGetRoute
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_is_args(self, is_args: bool) -> Self
pub fn set_body(self, body: fn() -> Vec<u8>) -> Self
pub fn set_body_with(self, body: fn(_: Request) -> Vec<u8>) -> Self
pub fn set_body_with_res(self, body: fn(_: Request) -> Response) -> Self
pub fn set_is_ret_res(self, is_ret_res: bool) -> Self
Trait Implementations
sourceimpl Clone for BasicGetRoute
impl Clone for BasicGetRoute
sourcefn clone(&self) -> BasicGetRoute
fn clone(&self) -> BasicGetRoute
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 BasicGetRoute
impl Debug for BasicGetRoute
sourceimpl Default for BasicGetRoute
impl Default for BasicGetRoute
sourceimpl Route for BasicGetRoute
impl Route for BasicGetRoute
sourceimpl ToResponse for BasicGetRoute
impl ToResponse for BasicGetRoute
Auto Trait Implementations
impl RefUnwindSafe for BasicGetRoute
impl Send for BasicGetRoute
impl Sync for BasicGetRoute
impl Unpin for BasicGetRoute
impl UnwindSafe for BasicGetRoute
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