Struct warp::reply::WithHeader
source · [−]pub struct WithHeader<T> { /* private fields */ }
Expand description
Wraps an impl Reply
and adds a header when rendering.
Returned by warp::reply::with_header
.
Trait Implementations
sourceimpl<T: Debug> Debug for WithHeader<T>
impl<T: Debug> Debug for WithHeader<T>
sourceimpl<T: Reply> Reply for WithHeader<T>
impl<T: Reply> Reply for WithHeader<T>
sourcefn into_response(self) -> Response
fn into_response(self) -> Response
Auto Trait Implementations
impl<T> RefUnwindSafe for WithHeader<T> where
T: RefUnwindSafe,
impl<T> Send for WithHeader<T> where
T: Send,
impl<T> Sync for WithHeader<T> where
T: Sync,
impl<T> Unpin for WithHeader<T> where
T: Unpin,
impl<T> UnwindSafe for WithHeader<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self