pub struct HtmlResponse { /* private fields */ }
Implementations§
Source§impl HtmlResponse
impl HtmlResponse
pub fn new(status_code: StatusCode, content: Bytes, headers: HeaderMap) -> Self
Trait Implementations§
Source§impl Clone for HtmlResponse
impl Clone for HtmlResponse
Source§fn clone(&self) -> HtmlResponse
fn clone(&self) -> HtmlResponse
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 HtmlResponse
impl Default for HtmlResponse
Source§fn default() -> HtmlResponse
fn default() -> HtmlResponse
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HtmlResponse
impl !RefUnwindSafe for HtmlResponse
impl Send for HtmlResponse
impl Sync for HtmlResponse
impl Unpin for HtmlResponse
impl !UnwindSafe for HtmlResponse
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