pub struct Response { /* private fields */ }
Implementations§
Source§impl Response
impl Response
Sourcepub fn send_status(&mut self, status: u16)
pub fn send_status(&mut self, status: u16)
Send the route’s status as a text. (will also change the route’s status)
Sourcepub fn status(&mut self, status: u16) -> &mut Self
pub fn status(&mut self, status: u16) -> &mut Self
Change the status of the route. Returns self (aka this) great for chaining if you’re into that.
pub fn new() -> Response
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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