pub struct PostRouteWithReqAndRes { /* private fields */ }Implementations§
source§impl PostRouteWithReqAndRes
impl PostRouteWithReqAndRes
pub fn new() -> PostRouteWithReqAndRes
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
Trait Implementations§
source§impl Clone for PostRouteWithReqAndRes
impl Clone for PostRouteWithReqAndRes
source§fn clone(&self) -> PostRouteWithReqAndRes
fn clone(&self) -> PostRouteWithReqAndRes
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 Default for PostRouteWithReqAndRes
impl Default for PostRouteWithReqAndRes
source§impl Route for PostRouteWithReqAndRes
impl Route for PostRouteWithReqAndRes
source§impl ToResponse for PostRouteWithReqAndRes
impl ToResponse for PostRouteWithReqAndRes
impl Send for PostRouteWithReqAndRes
impl Sync for PostRouteWithReqAndRes
Auto Trait Implementations§
impl Freeze for PostRouteWithReqAndRes
impl RefUnwindSafe for PostRouteWithReqAndRes
impl Unpin for PostRouteWithReqAndRes
impl UnwindSafe for PostRouteWithReqAndRes
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)