pub struct RedirectBody(/* private fields */);Implementations§
Source§impl RedirectBody
impl RedirectBody
pub fn to(url: &RUMString) -> Self
pub fn temporary(url: &RUMString) -> Self
pub fn permanent(url: &RUMString) -> Self
pub fn location(&self) -> RUMString
pub fn status_code(&self) -> StatusCode
pub fn into_response(self) -> HTMLResponse
Trait Implementations§
Source§impl Debug for RedirectBody
impl Debug for RedirectBody
Source§impl PartialEq for RedirectBody
impl PartialEq for RedirectBody
Auto Trait Implementations§
impl Freeze for RedirectBody
impl RefUnwindSafe for RedirectBody
impl Send for RedirectBody
impl Sync for RedirectBody
impl Unpin for RedirectBody
impl UnsafeUnpin for RedirectBody
impl UnwindSafe for RedirectBody
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