pub struct Fixed(pub Response);Expand description
A handler that always answers with the same response, for redirects and static pages registered straight on the router.
Tuple Fields§
§0: ResponseTrait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Fixed
impl !UnwindSafe for Fixed
impl Freeze for Fixed
impl Send for Fixed
impl Sync for Fixed
impl Unpin for Fixed
impl UnsafeUnpin for Fixed
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