pub struct GetRouteWithReqAndRes { /* private fields */ }
Implementations§
Source§impl 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(&mut Request, &mut TcpStream) -> Response, ) -> Self
pub fn get_body(&self) -> Option<fn(&mut Request, &mut TcpStream) -> Response>
Trait Implementations§
Source§impl Clone for GetRouteWithReqAndRes
impl Clone for GetRouteWithReqAndRes
Source§fn clone(&self) -> GetRouteWithReqAndRes
fn clone(&self) -> GetRouteWithReqAndRes
Returns a copy of the value. Read more
1.0.0 · 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 GetRouteWithReqAndRes
impl Debug for GetRouteWithReqAndRes
Source§impl Default for GetRouteWithReqAndRes
impl Default for GetRouteWithReqAndRes
Source§impl Route for GetRouteWithReqAndRes
impl Route for GetRouteWithReqAndRes
Source§impl ToResponse for GetRouteWithReqAndRes
impl ToResponse for GetRouteWithReqAndRes
Auto Trait Implementations§
impl Freeze for GetRouteWithReqAndRes
impl RefUnwindSafe for GetRouteWithReqAndRes
impl Send for GetRouteWithReqAndRes
impl Sync for GetRouteWithReqAndRes
impl Unpin for GetRouteWithReqAndRes
impl UnwindSafe for GetRouteWithReqAndRes
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