pub struct Css<R>(pub R);
Expand description
Override the Content-Type
of the response to
CSS
, or
text/css
.
Delegates the remainder of the response to the wrapped responder.
Tuple Fields§
§0: R
Trait Implementations§
Source§impl<'r, R: Responder<'r>> Responder<'r> for Css<R>
impl<'r, R: Responder<'r>> Responder<'r> for Css<R>
Sets the Content-Type of the response then delegates the remainder of the response to the wrapped responder.
impl<R> StructuralPartialEq for Css<R>
Auto Trait Implementations§
impl<R> Freeze for Css<R>where
R: Freeze,
impl<R> RefUnwindSafe for Css<R>where
R: RefUnwindSafe,
impl<R> Send for Css<R>where
R: Send,
impl<R> Sync for Css<R>where
R: Sync,
impl<R> Unpin for Css<R>where
R: Unpin,
impl<R> UnwindSafe for Css<R>where
R: UnwindSafe,
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