Struct rocket::response::content::Xml [−][src]
pub struct Xml<R>(pub R);
Expand description
Override the Content-Type
of the response to
XML
, or
text/xml
.
Delegates the remainder of the response to the wrapped responder.
Trait Implementations
Sets the Content-Type of the response then delegates the remainder of the response to the wrapped responder.
Returns Ok
if a Response
could be generated successfully. Otherwise,
returns an Err
with a failing Status
. Read more
Auto Trait Implementations
impl<R> RefUnwindSafe for Xml<R> where
R: RefUnwindSafe,
impl<R> UnwindSafe for Xml<R> where
R: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Converts self
into a collection.
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V