pub struct Response { /* private fields */ }Implementations§
Source§impl Response
impl Response
pub fn new() -> Self
pub fn topic(uri: &str) -> Self
pub fn body(self, body: Bytes) -> Self
pub fn status(self, status: StatusCode) -> Self
pub fn status_ref(&self) -> &StatusCode
pub fn uri(self, uri: String) -> Response
pub fn uri_ref(&self) -> &str
pub fn is_ok(&self) -> bool
pub fn take_body(&mut self) -> Body
Trait Implementations§
Source§impl IntoResponse for Response
impl IntoResponse for Response
fn into_response(self) -> 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